MCPcopy
hub / github.com/dask/dask / mean

Method mean

dask/dataframe/dask_expr/_collection.py:1838–1849  ·  view source on GitHub ↗
(
        self, axis=0, skipna=True, numeric_only=False, split_every=False, **kwargs
    )

Source from the content-addressed store, hash-verified

1836
1837 @derived_from(pd.DataFrame)
1838 def mean(
1839 self, axis=0, skipna=True, numeric_only=False, split_every=False, **kwargs
1840 ):
1841 _raise_if_object_series(self, "mean")
1842 axis = self._validate_axis(axis)
1843 if axis == 1:
1844 return self.map_partitions(
1845 M.mean, skipna=skipna, numeric_only=numeric_only, axis=axis
1846 )
1847 return new_collection(
1848 self.expr.mean(skipna, numeric_only, split_every=split_every, axis=axis)
1849 )
1850
1851 @derived_from(pd.DataFrame)
1852 def max(self, axis=0, skipna=True, numeric_only=False, split_every=False, **kwargs):

Callers

nothing calls this directly

Calls 5

map_partitionsMethod · 0.95
_raise_if_object_seriesFunction · 0.90
new_collectionFunction · 0.90
_validate_axisMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected