From ee0b7089d01b99b89fbdc397ccdbf8f6f95ae5a5 Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Tue, 6 Sep 2022 20:16:17 +0100 Subject: [PATCH] Backport PR #48414: DOC: Add deprecation to is_categorical --- pandas/core/dtypes/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 1173703386491..f5262aa7ceeaa 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -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