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