@Substitution(name='<STR_LIT>')<EOL><INDENT>@Appender(_common_see_also)<EOL>def var(self, ddof=<NUM_LIT:1>, *args, **kwargs):<DEDENT>
nv.validate_groupby_func('<STR_LIT>', args, kwargs)<EOL>if ddof == <NUM_LIT:1>:<EOL><INDENT>try:<EOL><INDENT>return self._cython_agg_general('<STR_LIT>', **kwargs)<EOL><DEDENT>except Exception:<EOL><INDENT>f = lambda x: x.var(ddof=ddof, **kwargs)<EOL>with _group_selection_context(self):<EOL><INDENT>return self._python_agg_general(f)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>f = lambda x: x.var(ddof=ddof, **kwargs)<EOL>with _group_selection_context(self):<EOL><INDENT>return self._python_agg_general(f)<EOL><DEDENT><DEDENT>
Compute variance of groups, excluding missing values.

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

Parameters
----------
ddof : integer, default 1
    degrees of freedom