MCPcopy Create free account
hub / github.com/dask/dask / _get_quantile_chunks

Function _get_quantile_chunks

dask/array/reductions.py:1806–1813  ·  view source on GitHub ↗
(a, q, axis, keepdims)

Source from the content-addressed store, hash-verified

1804
1805
1806def _get_quantile_chunks(a, q, axis, keepdims):
1807 quantile_chunk = [len(q)] if isinstance(q, Iterable) else []
1808 if keepdims:
1809 return quantile_chunk + [
1810 1 if ax in axis else c for ax, c in enumerate(a.chunks)
1811 ]
1812 else:
1813 return quantile_chunk + [c for ax, c in enumerate(a.chunks) if ax not in axis]

Callers 2

quantileFunction · 0.85
nanquantileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected