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

Method mode

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

Source from the content-addressed store, hash-verified

3678
3679 @derived_from(pd.DataFrame)
3680 def mode(self, dropna=True, split_every=False, numeric_only=False):
3681 modes = []
3682 for _, col in self.items():
3683 if numeric_only and not pd.api.types.is_numeric_dtype(col.dtype):
3684 continue
3685 modes.append(col.mode(dropna=dropna, split_every=split_every))
3686 return concat(modes, axis=1)
3687
3688 @derived_from(pd.DataFrame)
3689 def add_prefix(self, prefix):

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