Skip to content

Commit

Permalink
fix: sort_index to satisfy pandas 1.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 14, 2022
1 parent a5cf450 commit 6bac0fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ibis/backends/pandas/aggcontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,9 @@ def agg(
indexed_by_ordering = frame[columns].copy()
# placeholder column to compute window_sizes below
indexed_by_ordering['_placeholder'] = 0
indexed_by_ordering = indexed_by_ordering.set_index(order_by)
indexed_by_ordering = indexed_by_ordering.set_index(
order_by
).sort_index(kind="stable")

# regroup if needed
if group_by:
Expand Down

0 comments on commit 6bac0fc

Please sign in to comment.