Expanding.median(self, **kwargs)
[source]
Calculate the expanding median.
Parameters: |
|
---|---|
Returns: |
|
See also
Series.expanding
DataFrame.expanding
Series.median
DataFrame.median
Compute the rolling median of a series with a window size of 3.
>>> s = pd.Series([0, 1, 2, 3, 4]) >>> s.rolling(3).median() 0 NaN 1 NaN 2 1.0 3 2.0 4 3.0 dtype: float64
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.core.window.Expanding.median.html