modin.pandas.Expanding.countΒΆ
- Expanding.count(numeric_only: bool = False)[source]ΒΆ
Compute the expanding count.
- Parameters:
numeric_only (bool, default False) β Include only float, int, boolean columns.
- Returns:
Computed expanding count of values.
- Return type:
Examples
>>> df = pd.DataFrame({'B': [0, 1, 2, np.nan, 4]}) >>> df B 0 0.0 1 1.0 2 2.0 3 NaN 4 4.0 >>> df.expanding(2).count() B 0 NaN 1 2.0 2 3.0 3 3.0 4 4.0