dask_awkward.Array#
- class dask_awkward.Array(dsk, name, meta, divisions)[source]#
Partitioned, lazy, and parallel Awkward Array Dask collection.
The class constructor is not intended for users. Instead use factory functions like
from_parquet(),from_json(), etc.Within dask-awkward the
new_array_objectfactory function is used for creating new instances.- Parameters:
- __init__(dsk, name, meta, divisions)[source]#
- Parameters:
dsk (HighLevelGraph)
name (str)
meta (Array)
- Return type:
None
Methods
__init__(dsk, name, meta, divisions)clear_divisions()Clear the divisions of a Dask Awkward Collection.
compute(**kwargs)Compute this dask collection
eager_compute_divisions()Force a compute of the divisions.
head([nrow, compute])First few rows of the array
map_partitions(func, *args[, traverse])Map a function across all partitions of the collection.
persist(**kwargs)Persist this dask collection into memory
repartition([npartitions, divisions, ...])Restructure the partitioning of the whole array
reset_meta()Assign an empty typetracer array as the collection metadata.
to_dask_array(*[, dtype, optimize_graph])to_dask_bag()to_delayed([optimize_graph])Convert the collection to a list of delayed objects.
to_parquet(path[, storage_options])visualize([filename, format, optimize_graph])Render the computation of this object's task graph using graphviz.
Attributes
attrsawkward Array attrs dictionary.
behaviorawkward Array behavior dictionary.
daskHigh level task graph associated with the collection.
defined_divisionsdivisionsLocation of the collections partition boundaries.
fieldsRecord field names (if any).
formawkward Array form associated with the eventual computed result.
keysTask graph keys.
keys_arrayNumPy array of task graph keys.
known_divisionsTrue if the divisions are known (absence of
Nonein the tuple).layoutawkward Array layout associated with the eventual computed result.
masknameName of the collection.
ndimNumber of dimensions.
npartitionsTotal number of partitions.
partitionsGet a specific partition or slice of partitions.
typeawkward Array type associated with the eventual computed result.