dask 2021.10.0

Parameters
percentile(a, q, interpolation='linear', method='default')

Parameters

a : Array
q : array_like of float

Percentile or sequence of percentiles to compute, which must be between 0 and 100 inclusive.

interpolation : {'linear', 'lower', 'higher', 'midpoint', 'nearest'}, optional

The interpolation method to use when the desired percentile lies between two data points i < j . Only valid for method='dask' .

  • 'linear': i + (j - i) * fraction , where fraction is the fractional part of the index surrounded by i and j .

  • 'lower': i .

  • 'higher': j .

  • 'nearest': i or j , whichever is nearest.

  • 'midpoint': (i + j) / 2 .

method : {'default', 'dask', 'tdigest'}, optional

What method to use. By default will use dask's internal custom algorithm ( 'dask' ). If set to 'tdigest' will use tdigest for floats and ints and fallback to the 'dask' otherwise.

Approximate percentile of 1-D array

See Also

numpy.percentile

Numpy's equivalent Percentile function

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /dask/array/percentile.py#64
type: <class 'function'>
Commit: