MCPcopy
hub / github.com/dask/dask / mode

Method mode

dask/dataframe/dask_expr/_collection.py:3670–3676  ·  view source on GitHub ↗
(self, dropna=True, split_every=False, numeric_only=False)

Source from the content-addressed store, hash-verified

3668
3669 @derived_from(pd.DataFrame)
3670 def mode(self, dropna=True, split_every=False, numeric_only=False):
3671 modes = []
3672 for _, col in self.items():
3673 if numeric_only and not pd.api.types.is_numeric_dtype(col.dtype):
3674 continue
3675 modes.append(col.mode(dropna=dropna, split_every=split_every))
3676 return concat(modes, axis=1)
3677
3678 @derived_from(pd.DataFrame)
3679 def add_prefix(self, prefix, axis=None):

Callers 2

test_mode_numeric_onlyFunction · 0.95
test_mode_numeric_onlyFunction · 0.95

Calls 3

itemsMethod · 0.95
concatFunction · 0.70
modeMethod · 0.45

Tested by 2

test_mode_numeric_onlyFunction · 0.76
test_mode_numeric_onlyFunction · 0.76