Skip to content

Commit

Permalink
fix conflation of str/collection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Aug 2, 2023
1 parent e4f7f1f commit fa82d3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,11 @@ def drop(
"""
input_cols: list[str | SelectorType] = [
*(columns if isinstance(columns, Collection) else [columns]), # type: ignore[list-item]
*(
columns
if isinstance(columns, Collection) and not isinstance(columns, str)
else [columns] # type: ignore[list-item]
),
*more_columns,
]
drop_cols: list[str] = []
Expand Down

0 comments on commit fa82d3b

Please sign in to comment.