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

Function idxmaxmin_agg

dask/dataframe/core.py:357–364  ·  view source on GitHub ↗
(x, fn=None, skipna=True, scalar=False, numeric_only=no_default)

Source from the content-addressed store, hash-verified

355
356
357def idxmaxmin_agg(x, fn=None, skipna=True, scalar=False, numeric_only=no_default):
358 res = idxmaxmin_combine(x, fn, skipna=skipna)["idx"]
359 if len(res) == 0:
360 raise ValueError("attempt to get argmax of an empty sequence")
361 if scalar:
362 return res[0]
363 res.name = None
364 return res
365
366
367def _mode_aggregate(df, dropna):

Callers

nothing calls this directly

Calls 1

idxmaxmin_combineFunction · 0.85

Tested by

no test coverage detected