(
self,
axis=0,
skipna=True,
ddof=1,
numeric_only=False,
split_every=False,
**kwargs,
)
| 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( |
nothing calls this directly
no test coverage detected