diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 020f431d67da2..b9727beba1026 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2249,8 +2249,8 @@ def is_integer(self) -> bool: False """ warnings.warn( - f"{type(self).__name__}.is_integer is deprecated." - "Use pandas.api.types.is_integer_dtype instead", + f"{type(self).__name__}.is_integer is deprecated. " + "Use pandas.api.types.is_integer_dtype instead.", FutureWarning, stacklevel=find_stack_level(), )