Skip to content

Commit

Permalink
fix(polars): user newer drop API in asof join implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Feb 12, 2024
1 parent 43424ea commit c65d9f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ibis/backends/polars/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,10 @@ def asof_join(op, **kw):

assert len(on) == 1
joined = left.join_asof(right, on=on[0], by=by, strategy=direction)
joined = joined.drop(columns=on + by)
try:
joined = joined.drop(*(on + by))
except TypeError:
joined = joined.drop(columns=on + by)
return joined


Expand Down

0 comments on commit c65d9f8

Please sign in to comment.