pyspark.pandas.groupby.GroupBy.var

GroupBy.var(ddof: int = 1) → FrameLike[source]

Compute variance of groups, excluding missing values.

Parameters
ddofint, default 1

Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements.