Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Add a few deprecation notes #57490

Merged
merged 4 commits into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions pandas/core/dtypes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ def is_sparse(arr) -> bool:
"""
Check whether an array-like is a 1-D pandas sparse array.

.. deprecated:: 2.1.0
Use isinstance(dtype, pd.SparseDtype) instead.

Check that the one-dimensional array-like is a pandas sparse array.
Returns True if it is a pandas sparse array, not another type of
sparse array.
Expand Down Expand Up @@ -294,6 +297,9 @@ def is_datetime64tz_dtype(arr_or_dtype) -> bool:
"""
Check whether an array-like or dtype is of a DatetimeTZDtype dtype.

.. deprecated:: 2.1.0
Use isinstance(dtype, pd.DatetimeTZDtype) instead.

Parameters
----------
arr_or_dtype : array-like or dtype
Expand Down Expand Up @@ -380,6 +386,9 @@ def is_period_dtype(arr_or_dtype) -> bool:
"""
Check whether an array-like or dtype is of the Period dtype.

.. deprecated:: 2.2.0
Use isinstance(dtype, pd.Period) instead.

Parameters
----------
arr_or_dtype : array-like or dtype
Expand Down Expand Up @@ -423,6 +432,9 @@ def is_interval_dtype(arr_or_dtype) -> bool:
"""
Check whether an array-like or dtype is of the Interval dtype.

.. deprecated:: 2.2.0
Use isinstance(dtype, pd.IntervalDtype) instead.

Parameters
----------
arr_or_dtype : array-like or dtype
Expand Down Expand Up @@ -469,6 +481,9 @@ def is_categorical_dtype(arr_or_dtype) -> bool:
"""
Check whether an array-like or dtype is of the Categorical dtype.

.. deprecated:: 2.2.0
Use isinstance(dtype, pd.CategoricalDtype) instead.

Parameters
----------
arr_or_dtype : array-like or dtype
Expand Down
Loading