(x, fn=None, skipna=True, scalar=False, numeric_only=no_default)
| 356 | |
| 357 | |
| 358 | def 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 | |
| 368 | def _mode_aggregate(df, dropna): |
nothing calls this directly
no test coverage detected
searching dependent graphs…