(
self, axis=None, skipna=True, ddof=1, split_every=False, numeric_only=False
)
| 1772 | |
| 1773 | @derived_from(pd.DataFrame) |
| 1774 | def sem( |
| 1775 | self, axis=None, skipna=True, ddof=1, split_every=False, numeric_only=False |
| 1776 | ): |
| 1777 | axis = self._validate_axis(axis) |
| 1778 | _raise_if_object_series(self, "sem") |
| 1779 | if axis == 1: |
| 1780 | return self.map_partitions( |
| 1781 | M.sem, |
| 1782 | axis=axis, |
| 1783 | skipna=skipna, |
| 1784 | ddof=ddof, |
| 1785 | numeric_only=numeric_only, |
| 1786 | ) |
| 1787 | meta = self._meta.sem(skipna=skipna, ddof=ddof, numeric_only=numeric_only) |
| 1788 | frame = self |
| 1789 | if self.ndim == 2: |
| 1790 | frame = self[list(meta.index)] |
| 1791 | |
| 1792 | v = frame.var(skipna=skipna, ddof=ddof, split_every=split_every) |
| 1793 | n = frame.count(split_every=split_every) |
| 1794 | result = map_partitions( |
| 1795 | np.sqrt, |
| 1796 | v / n, |
| 1797 | meta=meta, |
| 1798 | enforce_metadata=False, |
| 1799 | parent_meta=self._meta, |
| 1800 | ) |
| 1801 | return result |
| 1802 | |
| 1803 | def _prepare_cov_corr(self, min_periods, numeric_only): |
| 1804 | if min_periods is None: |
nothing calls this directly
no test coverage detected