MCPcopy Create free account
hub / github.com/dask/dask / var

Method var

dask/dataframe/dask_expr/_collection.py:1557–1574  ·  view source on GitHub ↗
(
        self,
        axis=0,
        skipna=True,
        ddof=1,
        numeric_only=False,
        split_every=False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

1555
1556 @derived_from(pd.DataFrame)
1557 def var(
1558 self,
1559 axis=0,
1560 skipna=True,
1561 ddof=1,
1562 numeric_only=False,
1563 split_every=False,
1564 **kwargs,
1565 ):
1566 _raise_if_object_series(self, "var")
1567 axis = self._validate_axis(axis)
1568 self._meta.var(axis=axis, skipna=skipna, numeric_only=numeric_only)
1569 frame = self
1570 if is_dataframe_like(self._meta) and numeric_only:
1571 frame = frame[list(self._meta.var(numeric_only=True).index)]
1572 return new_collection(
1573 frame.expr.var(axis, skipna, ddof, numeric_only, split_every=split_every)
1574 )
1575
1576 @derived_from(pd.DataFrame)
1577 def std(

Callers

nothing calls this directly

Calls 5

_raise_if_object_seriesFunction · 0.90
new_collectionFunction · 0.90
is_dataframe_likeFunction · 0.85
_validate_axisMethod · 0.45
varMethod · 0.45

Tested by

no test coverage detected