open2c/bioframe

Deprecation of `is_categorical_dtype` in pandas 2

Closed this issue · 1 comments

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),

pd.api.types.is_categorical_dtype(chrom_dtype),

These were removed in v0.5.1.