diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b53595621af11..6c8dd2f8da938 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -572,7 +572,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated argument ``infer_datetime_format`` in :func:`to_datetime` and :func:`read_csv`, as a strict version of it is now the default (:issue:`48621`) -- Deprecated :func:`pandas.io.sql.execute`(:issue:`50185`) +- Deprecated :func:`pandas.io.sql.execute` (:issue:`50185`) - :meth:`Index.is_boolean` has been deprecated. Use :func:`pandas.api.types.is_bool_dtype` instead (:issue:`50042`) - :meth:`Index.is_integer` has been deprecated. Use :func:`pandas.api.types.is_integer_dtype` instead (:issue:`50042`) - :meth:`Index.is_floating` has been deprecated. Use :func:`pandas.api.types.is_float_dtype` instead (:issue:`50042`) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 9e00278f85cbc..59af8f2bbcd51 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2225,7 +2225,7 @@ def is_boolean(self) -> bool: """ warnings.warn( f"{type(self).__name__}.is_boolean is deprecated. " - "Use pandas.api.types.is_bool_type instead", + "Use pandas.api.types.is_bool_type instead.", FutureWarning, stacklevel=find_stack_level(), ) @@ -2320,8 +2320,8 @@ def is_floating(self) -> bool: False """ warnings.warn( - f"{type(self).__name__}.is_floating is deprecated." - "Use pandas.api.types.is_float_dtype instead", + f"{type(self).__name__}.is_floating is deprecated. " + "Use pandas.api.types.is_float_dtype instead.", FutureWarning, stacklevel=find_stack_level(), )