LazyFrame.collect
DataFrame collect(bool optimize = true) @trustedCollects 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
optimize | whether the safe rewrites run first (the optimize-off path walks the raw plan) |
Returns
the materialised DataFrame.