Skip to content

Commit f0aa553

Browse files
bang128topper-123
authored andcommitted
Update
1 parent 022da18 commit f0aa553

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/indexes/base.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,7 @@ def is_numeric(self) -> bool:
24272427
def is_object(self) -> bool:
24282428
"""
24292429
Check if the Index is of the object dtype.
2430+
24302431
.. deprecated:: 2.0.0
24312432
Use `pandas.api.types.is_object_dtype` instead.
24322433
@@ -2463,14 +2464,12 @@ def is_object(self) -> bool:
24632464
>>> idx.is_object()
24642465
False
24652466
"""
2466-
24672467
warnings.warn(
24682468
f"{type(self).__name__}.is_object is deprecated."
24692469
"Use pandas.api.types.is_object_dtype instead",
24702470
FutureWarning,
24712471
stacklevel=find_stack_level(),
24722472
)
2473-
24742473
return is_object_dtype(self.dtype)
24752474

24762475
@final

0 commit comments

Comments
 (0)