Window#
Rolling objects are returned by .rolling calls: pandas.DataFrame.rolling(), pandas.Series.rolling(), etc.
Expanding objects are returned by .expanding calls: pandas.DataFrame.expanding(), pandas.Series.expanding(), etc.
ExponentialMovingWindow objects are returned by .ewm calls: pandas.DataFrame.ewm(), pandas.Series.ewm(), etc.
Rolling window functions#
| 
 | Calculate the rolling count of non NaN observations. | 
| 
 | Calculate the rolling sum. | 
| 
 | Calculate the rolling mean. | 
| 
 | Calculate the rolling median. | 
| 
 | Calculate the rolling variance. | 
| 
 | Calculate the rolling standard deviation. | 
| 
 | Calculate the rolling minimum. | 
| 
 | Calculate the rolling maximum. | 
| 
 | Calculate the rolling correlation. | 
| 
 | Calculate the rolling sample covariance. | 
| 
 | Calculate the rolling unbiased skewness. | 
| 
 | Calculate the rolling Fisher's definition of kurtosis without bias. | 
| 
 | Calculate the rolling custom aggregation function. | 
| 
 | Aggregate using one or more operations over the specified axis. | 
| 
 | Calculate the rolling quantile. | 
| 
 | Calculate the rolling standard error of mean. | 
| 
 | Calculate the rolling rank. | 
Weighted window functions#
| 
 | Calculate the rolling weighted window mean. | 
| 
 | Calculate the rolling weighted window sum. | 
| 
 | Calculate the rolling weighted window variance. | 
| 
 | Calculate the rolling weighted window standard deviation. | 
Expanding window functions#
| 
 | Calculate the expanding count of non NaN observations. | 
| 
 | Calculate the expanding sum. | 
| 
 | Calculate the expanding mean. | 
| 
 | Calculate the expanding median. | 
| 
 | Calculate the expanding variance. | 
| 
 | Calculate the expanding standard deviation. | 
| 
 | Calculate the expanding minimum. | 
| 
 | Calculate the expanding maximum. | 
| 
 | Calculate the expanding correlation. | 
| 
 | Calculate the expanding sample covariance. | 
| 
 | Calculate the expanding unbiased skewness. | 
| 
 | Calculate the expanding Fisher's definition of kurtosis without bias. | 
| 
 | Calculate the expanding custom aggregation function. | 
| 
 | Aggregate using one or more operations over the specified axis. | 
| 
 | Calculate the expanding quantile. | 
| 
 | Calculate the expanding standard error of mean. | 
| 
 | Calculate the expanding rank. | 
Exponentially-weighted window functions#
| 
 | Calculate the ewm (exponential weighted moment) mean. | 
| 
 | Calculate the ewm (exponential weighted moment) sum. | 
| 
 | Calculate the ewm (exponential weighted moment) standard deviation. | 
| 
 | Calculate the ewm (exponential weighted moment) variance. | 
| 
 | Calculate the ewm (exponential weighted moment) sample correlation. | 
| 
 | Calculate the ewm (exponential weighted moment) sample covariance. | 
Window indexer#
Base class for defining custom window boundaries.
| 
 | Base class for window bounds calculations. | 
| Creates window boundaries for fixed-length windows that include the current row. | |
| Calculate window boundaries based on a non-fixed offset such as a BusinessDay. |