Skip to content

Commit

Permalink
Fix dropping columns from polars objects (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored Jul 3, 2024
1 parent 33016a0 commit d19c2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iranges/IRanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ def from_polars(cls, input: "polars.DataFrame") -> "IRanges":
width = input["width"].to_list()

# mcols
mcols_df = input.drop(columns=["start", "width"])
mcols_df = input.drop(["start", "width"])

mcols = None
if (not mcols_df.is_empty()) or len(mcols_df.columns) > 0:
Expand Down

0 comments on commit d19c2d4

Please sign in to comment.