open2c / bioframe

Genomic interval operations on Pandas DataFrames
MIT License
173 stars 28 forks source link

Deprecation of `is_categorical_dtype` in pandas 2 #174

Closed benjaminbauer closed 9 months ago

benjaminbauer commented 11 months ago

in version 0.5.0 with pandas 2.1.1

bioframe/core/specs.py:151: FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, CategoricalDtype) instead
    pd.api.types.is_categorical_dtype(chrom_dtype),

https://github.com/open2c/bioframe/blob/c38fc729b0d4db321ea2cd0d42da28a2142a5d61/bioframe/core/specs.py#L151

nvictus commented 9 months ago

These were removed in v0.5.1.