@@ -169,6 +169,9 @@ def is_sparse(arr) -> bool:
169
169
"""
170
170
Check whether an array-like is a 1-D pandas sparse array.
171
171
172
+ .. deprecated:: 2.1.0
173
+ Use isinstance(dtype, pd.SparseDtype) instead.
174
+
172
175
Check that the one-dimensional array-like is a pandas sparse array.
173
176
Returns True if it is a pandas sparse array, not another type of
174
177
sparse array.
@@ -295,6 +298,9 @@ def is_datetime64tz_dtype(arr_or_dtype) -> bool:
295
298
"""
296
299
Check whether an array-like or dtype is of a DatetimeTZDtype dtype.
297
300
301
+ .. deprecated:: 2.1.0
302
+ Use isinstance(dtype, pd.DatetimeTZDtype) instead.
303
+
298
304
Parameters
299
305
----------
300
306
arr_or_dtype : array-like or dtype
@@ -381,6 +387,9 @@ def is_period_dtype(arr_or_dtype) -> bool:
381
387
"""
382
388
Check whether an array-like or dtype is of the Period dtype.
383
389
390
+ .. deprecated:: 2.2.0
391
+ Use isinstance(dtype, pd.Period) instead.
392
+
384
393
Parameters
385
394
----------
386
395
arr_or_dtype : array-like or dtype
@@ -424,6 +433,9 @@ def is_interval_dtype(arr_or_dtype) -> bool:
424
433
"""
425
434
Check whether an array-like or dtype is of the Interval dtype.
426
435
436
+ .. deprecated:: 2.2.0
437
+ Use isinstance(dtype, pd.IntervalDtype) instead.
438
+
427
439
Parameters
428
440
----------
429
441
arr_or_dtype : array-like or dtype
@@ -470,6 +482,9 @@ def is_categorical_dtype(arr_or_dtype) -> bool:
470
482
"""
471
483
Check whether an array-like or dtype is of the Categorical dtype.
472
484
485
+ .. deprecated:: 2.2.0
486
+ Use isinstance(dtype, pd.CategoricalDtype) instead.
487
+
473
488
Parameters
474
489
----------
475
490
arr_or_dtype : array-like or dtype
0 commit comments