dask_expr._collection.Index.compute

dask_expr._collection.Index.compute

Index.compute(fuse=True, concatenate=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.

concatenatebool, default True

Whether to concatenate all partitions into a single one before computing. Concatenating enables more powerful optimizations but it also incurs additional data transfer cost. Generally, it should be enabled.

kwargs

Extra keywords to forward to the base compute function.

See also

dask.compute