dask_awkward.to_dask_array

Contents

dask_awkward.to_dask_array#

dask_awkward.to_dask_array(array, *, dtype=None, optimize_graph=True)[source]#

Convert Array collection to a dask.array.Array collection.

This conversion requires the awkward array to have a rectilinear shape (that is, no lists of variable length lists).

Parameters:
  • array (Array) – The dask awkward array collection.

  • dtype (DType) – NumPy dtype for the resulting array.

  • optimize_graph (bool) – Optimize the graph associated with array (the dask_awkward.Array) before converting to dask.array.Array.

Returns:

The new dask.array.Array collection.

Return type:

dask.array.Array