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

Method var

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

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