snowflake.snowpark.modin.plugin.extensions.window_overrides.Expanding.count¶
- Expanding.count(numeric_only: bool = False)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/window_overrides.py#L498-L509)¶
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