W3cubDocs

/pandas 0.25

pandas.core.window.Expanding.min

Expanding.min(self, *args, **kwargs) [source]

Calculate the expanding minimum.

Parameters:
**kwargs

Under Review.

Returns:
Series or DataFrame

Returned object type is determined by the caller of the expanding calculation.

See also

Series.expanding
Calling object with a Series.
DataFrame.expanding
Calling object with a DataFrame.
Series.min
Similar method for Series.
DataFrame.min
Similar method for DataFrame.

Examples

Performing a rolling minimum with a window size of 3.

>>> s = pd.Series([4, 3, 5, 2, 6])
>>> s.rolling(3).min()
0    NaN
1    NaN
2    3.0
3    2.0
4    2.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.min.html