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

Function _get_quantile_chunks

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

Source from the content-addressed store, hash-verified

1767
1768
1769def _get_quantile_chunks(a, q, axis, keepdims):
1770 quantile_chunk = [len(q)] if isinstance(q, Iterable) else []
1771 if keepdims:
1772 return quantile_chunk + [
1773 1 if ax in axis else c for ax, c in enumerate(a.chunks)
1774 ]
1775 else:
1776 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