snowflake.snowpark.modin.plugin.extensions.resample_overrides.Resampler.var¶
- Resampler.var(ddof: int = 1, numeric_only: ~typing.Union[bool, ~typing.Literal[<no_default>]] = _NoDefault.no_default, *args: ~typing.Any, **kwargs: ~typing.Any) Union[DataFrame, Series][source]¶
Compute variance of resample bins.
- Parameters:
ddof (int, default 1) – Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements.
numeric_only (bool, default False) – Include only float, int, boolean columns.
min_count (int, default 0) – The required number of valid values to perform the operation. If fewer than
min_countnon-NA values are present, the result will be NA.engine (str, default None) – This parameter is ignored in Snowpark pandas. The execution engine will always be Snowflake.
engine_kwargs (dict, default None) – This parameter is ignored in Snowpark pandas. The execution engine will always be Snowflake.
- Returns:
Computed variance of values within each resample bin.
- Return type:
Examples
For Series:
For DataFrame: