dask_histogram.AggHistogram

dask_histogram.AggHistogram

class dask_histogram.AggHistogram(dsk, name, histref, layer=None)[source]

Aggregated Histogram collection.

The class constructor is typically used internally; dask_histogram.factory() is recommended for users (along with the dask_histogram.routines module).

__init__(dsk, name, histref, layer=None)[source]

Methods

__init__(dsk, name, histref[, layer])

compute(**kwargs)

Compute this dask collection

counts([flow])

persist(**kwargs)

Persist this dask collection into memory

to_boost()

Convert to a boost_histogram.Histogram via computation.

to_dask_array([flow, dd])

Convert histogram object to dask.array form.

to_delayed([optimize_graph])

values([flow])

variances([flow])

visualize([filename, format, optimize_graph])

Render the computation of this object's task graph using graphviz.

Attributes

dask

histref

Empty reference boost-histogram object.

key

name

ndim

Total number of dimensions.

shape

Shape of the histogram as an array.

size

Size of the histogram.