quantile(self, q=0.5, axis: 'Axis' = 0, numeric_only: 'bool' = True, interpolation: 'str' = 'linear')
Value between 0 <= q <= 1, the quantile(s) to compute.
Equals 0 or 'index' for row-wise, 1 or 'columns' for column-wise.
If False, the quantile of datetime and timedelta data will be computed as well.
This optional parameter specifies the interpolation method to use, when the desired quantile lies between two data points i
and :None:None:`j`
:
If q
is an array, a DataFrame will be returned where the
index is q
, the columns are the columns of self, and the values are the quantiles.
If q
is a float, a Series will be returned where the
index is the columns of self and the values are the quantiles.
Return values at the given quantile over requested axis.
core.window.Rolling.quantile
Rolling quantile.
numpy.percentile
Numpy function to compute the percentile.
>>> df = pd.DataFrame(np.array([[1, 1], [2, 10], [3, 100], [4, 100]]),This example is valid syntax, but we were not able to check execution
... columns=['a', 'b'])
... df.quantile(.1) a 1.3 b 3.7 Name: 0.1, dtype: float64
>>> df.quantile([.1, .5]) a b 0.1 1.3 3.7 0.5 2.5 55.0
Specifying :None:None:`numeric_only=False`
will also compute the quantile of datetime and timedelta data.
>>> df = pd.DataFrame({'A': [1, 2],See :
... 'B': [pd.Timestamp('2010'),
... pd.Timestamp('2011')],
... 'C': [pd.Timedelta('1 days'),
... pd.Timedelta('2 days')]})
... df.quantile(0.5, numeric_only=False) A 1.5 B 2010-07-02 12:00:00 C 1 days 12:00:00 Name: 0.5, dtype: object
The following pages refer to to this document either explicitly or contain code examples using this.
pandas.core.window.expanding.Expanding.quantile
pandas.core.groupby.groupby.GroupBy.quantile
pandas.core.window.rolling.Rolling.quantile
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