LazyFrame.collect

DataFrame collect(bool optimize = true) @trusted

Collects the deferred frame: optimizes the plan (bounded, proved-safe rewrites), then walks the tree through the eager kernels. The result equals both the unoptimized collect and the equivalent eager chain bitwise; repeated collections are equal.

Parameters

optimizewhether the safe rewrites run first (the optimize-off path walks the raw plan)

Returns

the materialised DataFrame.