Skip to content

Commit 575dc38

Browse files
authored
DOC: Clean whatsnew and dep warning (pandas-dev#50752)
1 parent 5b6d6eb commit 575dc38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/source/whatsnew/v2.0.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ Other API changes
572572
Deprecations
573573
~~~~~~~~~~~~
574574
- 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`)
575-
- Deprecated :func:`pandas.io.sql.execute`(:issue:`50185`)
575+
- Deprecated :func:`pandas.io.sql.execute` (:issue:`50185`)
576576
- :meth:`Index.is_boolean` has been deprecated. Use :func:`pandas.api.types.is_bool_dtype` instead (:issue:`50042`)
577577
- :meth:`Index.is_integer` has been deprecated. Use :func:`pandas.api.types.is_integer_dtype` instead (:issue:`50042`)
578578
- :meth:`Index.is_floating` has been deprecated. Use :func:`pandas.api.types.is_float_dtype` instead (:issue:`50042`)

pandas/core/indexes/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ def is_boolean(self) -> bool:
22252225
"""
22262226
warnings.warn(
22272227
f"{type(self).__name__}.is_boolean is deprecated. "
2228-
"Use pandas.api.types.is_bool_type instead",
2228+
"Use pandas.api.types.is_bool_type instead.",
22292229
FutureWarning,
22302230
stacklevel=find_stack_level(),
22312231
)
@@ -2320,8 +2320,8 @@ def is_floating(self) -> bool:
23202320
False
23212321
"""
23222322
warnings.warn(
2323-
f"{type(self).__name__}.is_floating is deprecated."
2324-
"Use pandas.api.types.is_float_dtype instead",
2323+
f"{type(self).__name__}.is_floating is deprecated. "
2324+
"Use pandas.api.types.is_float_dtype instead.",
23252325
FutureWarning,
23262326
stacklevel=find_stack_level(),
23272327
)

0 commit comments

Comments
 (0)