MCPcopy
hub / github.com/dask/dask / idxmaxmin_agg

Function idxmaxmin_agg

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

idxmaxmin_combineFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…