dask_expr._collection.DataFrame.compute

dask_expr._collection.DataFrame.compute

DataFrame.compute(fuse=True, **kwargs)

Compute this DataFrame.

This turns a lazy Dask DataFrame into an in-memory pandas DataFrame. The entire dataset must fit into memory before calling this operation.

The optimizer runs over the DataFrame before triggering the computation. The optimizer injects a repartition operation that reduces the partition count to 1 to enable better optimization strategies.

Parameters
fusebool, default True

Whether to fuse the expression tree before computing. Fusing significantly reduces the number of tasks and improves performance. It shouldn’t be disabled unless absolutely necessary.

kwargs

Extra keywords to forward to the base compute function.

See also

dask.compute