MCPcopy
hub / github.com/dask/dask / var

Method var

dask/dataframe/dask_expr/_expr.py:289–295  ·  view source on GitHub ↗
(self, axis=0, skipna=True, ddof=1, numeric_only=False, split_every=False)

Source from the content-addressed store, hash-verified

287 return Prod(self, skipna, numeric_only, split_every, axis)
288
289 def var(self, axis=0, skipna=True, ddof=1, numeric_only=False, split_every=False):
290 if axis == 0:
291 return Var(self, skipna, ddof, numeric_only, split_every)
292 elif axis == 1:
293 return VarColumns(self, skipna, ddof, numeric_only)
294 else:
295 raise ValueError(f"axis={axis} not supported. Please specify 0 or 1")
296
297 def std(self, axis=0, skipna=True, ddof=1, numeric_only=False, split_every=False):
298 return Sqrt(self.var(axis, skipna, ddof, numeric_only, split_every=split_every))

Callers 6

stdMethod · 0.95
_lowerMethod · 0.45
_metaMethod · 0.45
_metaMethod · 0.45
test_groupby_indexFunction · 0.45
test_std_var_sliceFunction · 0.45

Calls 2

VarClass · 0.90
VarColumnsClass · 0.85

Tested by 2

test_groupby_indexFunction · 0.36
test_std_var_sliceFunction · 0.36