maxframe.liteframe.LiteFrame.var#

LiteFrame.var(method='auto', numeric_only=None, **kw)#

Return the unbiased variance of each column.

Parameters:
  • method ({'auto', 'tree', 'shuffle'}, default 'auto') – Execution strategy. 'auto' selects based on data size.

  • numeric_only (bool, optional) – When True, restrict to numeric columns. By default None.

  • **kw – Additional keyword arguments forwarded to the reduction.

Returns:

Single-row LiteFrame of per-column variances.

Return type:

LiteFrame

Examples

>>> import maxframe.liteframe as mlf
>>> lf = mlf.LiteFrame({'a': [1, 2, 3], 'b': [4, 5, 6]})
>>> result = lf.var()
>>> result.execute()
     a    b
0  1.0  1.0