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

Function idxmaxmin_combine

dask/dataframe/core.py:347–354  ·  view source on GitHub ↗
(x, fn=None, skipna=True)

Source from the content-addressed store, hash-verified

345
346
347def idxmaxmin_combine(x, fn=None, skipna=True):
348 if len(x) <= 1:
349 return x
350 return (
351 x.groupby(level=0)
352 .apply(idxmaxmin_row, fn=fn, skipna=skipna)
353 .reset_index(level=1, drop=True)
354 )
355
356
357def idxmaxmin_agg(x, fn=None, skipna=True, scalar=False, numeric_only=no_default):

Callers 1

idxmaxmin_aggFunction · 0.85

Calls 3

reset_indexMethod · 0.80
applyMethod · 0.45
groupbyMethod · 0.45

Tested by

no test coverage detected