From d2f95fcc1e0faa70e3ffc002bb8077ee48469117 Mon Sep 17 00:00:00 2001 From: paulpellissiercompass Date: Thu, 31 Aug 2023 10:41:35 +0200 Subject: [PATCH] Update warning message for consistency --- pandas/core/dtypes/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 3db36fc50e343..b00c470ca173f 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -498,7 +498,7 @@ def is_categorical_dtype(arr_or_dtype) -> bool: # GH#52527 warnings.warn( "is_categorical_dtype is deprecated and will be removed in a future " - "version. Use isinstance(dtype, CategoricalDtype) instead", + "version. Use isinstance(dtype, pd.CategoricalDtype) instead", FutureWarning, stacklevel=find_stack_level(), )