From 3100d58ae9f4e798287261d1758735406d3525f3 Mon Sep 17 00:00:00 2001 From: jkanche Date: Tue, 2 Jul 2024 21:08:55 -0700 Subject: [PATCH] Fix issues with drop on polars objects --- setup.cfg | 2 +- src/genomicranges/GenomicRanges.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index ed77ab0..467bc22 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,7 +50,7 @@ python_requires = >=3.8 install_requires = importlib-metadata; python_version<"3.8" biocframe>=0.5.11 - iranges[optional]>=0.2.10 + iranges[optional]>=0.2.11 biocutils>=0.1.3 numpy diff --git a/src/genomicranges/GenomicRanges.py b/src/genomicranges/GenomicRanges.py index 7d3f5f5..3f5a15f 100644 --- a/src/genomicranges/GenomicRanges.py +++ b/src/genomicranges/GenomicRanges.py @@ -1191,7 +1191,7 @@ def from_polars(cls, input: "polars.DataFrame") -> "GenomicRanges": # mcols drops.extend(["starts", "seqnames"]) - mcols_df = input.drop(columns=drops) + mcols_df = input.drop(drops) mcols = None if (not mcols_df.is_empty()) or len(mcols_df.columns) > 0: