(
self, axis=None, skipna=True, ddof=1, split_every=False, numeric_only=False
)
| 1806 | |
| 1807 | @derived_from(pd.DataFrame) |
| 1808 | def sem( |
| 1809 | self, axis=None, skipna=True, ddof=1, split_every=False, numeric_only=False |
| 1810 | ): |
| 1811 | axis = self._validate_axis(axis) |
| 1812 | _raise_if_object_series(self, "sem") |
| 1813 | if axis == 1: |
| 1814 | return self.map_partitions( |
| 1815 | M.sem, |
| 1816 | axis=axis, |
| 1817 | skipna=skipna, |
| 1818 | ddof=ddof, |
| 1819 | numeric_only=numeric_only, |
| 1820 | ) |
| 1821 | meta = self._meta.sem(skipna=skipna, ddof=ddof, numeric_only=numeric_only) |
| 1822 | frame = self |
| 1823 | if self.ndim == 2: |
| 1824 | frame = self[list(meta.index)] |
| 1825 | |
| 1826 | v = frame.var(skipna=skipna, ddof=ddof, split_every=split_every) |
| 1827 | n = frame.count(split_every=split_every) |
| 1828 | result = map_partitions( |
| 1829 | np.sqrt, |
| 1830 | v / n, |
| 1831 | meta=meta, |
| 1832 | enforce_metadata=False, |
| 1833 | parent_meta=self._meta, |
| 1834 | ) |
| 1835 | return result |
| 1836 | |
| 1837 | def _prepare_cov_corr(self, min_periods, numeric_only): |
| 1838 | if min_periods is None: |
nothing calls this directly
no test coverage detected