Skip to content

Commit

Permalink
fix(polars): user newer drop API to avoid deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Feb 12, 2024
1 parent c836339 commit 43424ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ibis/backends/polars/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ def join(op, **kw):
left, right = right, left

joined = left.join(right, on=on, how=how)
joined = joined.drop(columns=on)

try:
joined = joined.drop(*on)
except TypeError:
joined = joined.drop(columns=on)

return joined

Expand Down

0 comments on commit 43424ea

Please sign in to comment.