Skip to content

Commit 42e90b9

Browse files
committed
Remove deprecated is_categorical_dtype
1 parent 231f8d3 commit 42e90b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioframe/core/specs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ def is_chrom_dtype(chrom_dtype):
148148
[
149149
pd.api.types.is_string_dtype(chrom_dtype),
150150
pd.api.types.is_object_dtype(chrom_dtype),
151-
pd.api.types.is_categorical_dtype(chrom_dtype),
151+
isinstance(chrom_dtype, pd.api.types.CategoricalDtype),
152152
]
153153
)

0 commit comments

Comments
 (0)