expanding(min_periods: int = 1) → Expanding[FrameLike]¶
Provide expanding transformations.
‘min_periods’ in pandas-on-Spark works as a fixed window size unlike pandas. Unlike pandas, NA is also counted as the period. This might be changed in the near future.
- min_periodsint, default 1
Minimum number of observations in window required to have a value (otherwise result is NA).
- a Window sub-classed for the particular operation