Skip to content

Commit

Permalink
fix(dask): fix argmin/argmax implementation for dask
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrist committed Apr 18, 2024
1 parent 03825b6 commit 93834f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibis/backends/dask/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def limit_df(


def argminmax_chunk(df, keycol, valcol, method):
return df.iloc[getattr(df[keycol], method)()]
idx = getattr(df[keycol], method)()
return df[[keycol, valcol]].iloc[idx : idx + 1]


def argminmax_aggregate(df, keycol, valcol, method):
Expand Down

0 comments on commit 93834f1

Please sign in to comment.