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

Method mode

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

Source from the content-addressed store, hash-verified

3674
3675 @derived_from(pd.DataFrame)
3676 def mode(self, dropna=True, split_every=False, numeric_only=False):
3677 modes = []
3678 for _, col in self.items():
3679 if numeric_only and not pd.api.types.is_numeric_dtype(col.dtype):
3680 continue
3681 modes.append(col.mode(dropna=dropna, split_every=split_every))
3682 return concat(modes, axis=1)
3683
3684 @derived_from(pd.DataFrame)
3685 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