Skip to content

Commit

Permalink
Backport PR pandas-dev#48414 on branch 1.5.x (DOC: Add deprecation to…
Browse files Browse the repository at this point in the history
… is_categorical) (pandas-dev#48418)

Backport PR pandas-dev#48414: DOC: Add deprecation to is_categorical

Co-authored-by: Kevin Sheppard <bashtage@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and bashtage authored Sep 6, 2022
1 parent bccc060 commit e6f5022
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pandas/core/dtypes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def is_categorical(arr) -> bool:
"""
Check whether an array-like is a Categorical instance.
.. deprecated:: 1.1.0
Use ``is_categorical_dtype`` instead.
Parameters
----------
arr : array-like
Expand Down

0 comments on commit e6f5022

Please sign in to comment.