xorbits.pandas.groupby.SeriesGroupBy.var#

SeriesGroupBy.var(**kw)#

Compute variance of groups, excluding missing values.

For multiple groupings, the result index will be a MultiIndex.

Parameters
  • ddof (int, default 1 (Not supported yet)) – Degrees of freedom.

  • engine (str, default None (Not supported yet)) –

    • 'cython' : Runs the operation through C-extensions from cython.

    • 'numba' : Runs the operation through JIT compiled code from numba.

    • None : Defaults to 'cython' or globally setting compute.use_numba

    New in version 1.4.0.

  • engine_kwargs (dict, default None (Not supported yet)) –

    • For 'cython' engine, there are no accepted engine_kwargs

    • For 'numba' engine, the engine can accept nopython, nogil and parallel dictionary keys. The values must either be True or False. The default engine_kwargs for the 'numba' engine is {{'nopython': True, 'nogil': False, 'parallel': False}}

    New in version 1.4.0.

  • numeric_only (bool, default True (Not supported yet)) –

    Include only float, int or boolean data.

    New in version 1.5.0.

Returns

Variance of values within each group.

Return type

Series or DataFrame

See also

Series.groupby

Apply a function groupby to a Series.

DataFrame.groupby

Apply a function groupby to each row or column of a DataFrame.

This docstring was copied from pandas.core.groupby.generic.SeriesGroupBy.