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

Method sem

dask/dataframe/dask_expr/_collection.py:1772–1799  ·  view source on GitHub ↗
(
        self, axis=None, skipna=True, ddof=1, split_every=False, numeric_only=False
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

map_partitionsMethod · 0.95
_raise_if_object_seriesFunction · 0.90
map_partitionsFunction · 0.70
_validate_axisMethod · 0.45
varMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected