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

Method var

dask/dataframe/dask_expr/_collection.py:1517–1534  ·  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

1515
1516 @derived_from(pd.DataFrame)
1517 def var(
1518 self,
1519 axis=0,
1520 skipna=True,
1521 ddof=1,
1522 numeric_only=False,
1523 split_every=False,
1524 **kwargs,
1525 ):
1526 _raise_if_object_series(self, "var")
1527 axis = self._validate_axis(axis)
1528 self._meta.var(axis=axis, skipna=skipna, numeric_only=numeric_only)
1529 frame = self
1530 if is_dataframe_like(self._meta) and numeric_only:
1531 frame = frame[list(self._meta.var(numeric_only=True).index)]
1532 return new_collection(
1533 frame.expr.var(axis, skipna, ddof, numeric_only, split_every=split_every)
1534 )
1535
1536 @derived_from(pd.DataFrame)
1537 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