Skip to content

Commit e39068a

Browse files
bang128topper-123
authored andcommitted
Update
1 parent c6ab2f9 commit e39068a

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
@@ -2395,6 +2395,7 @@ def is_numeric(self) -> bool:
23952395
def is_object(self) -> bool:
23962396
"""
23972397
Check if the Index is of the object dtype.
2398+
23982399
.. deprecated:: 2.0.0
23992400
Use `pandas.api.types.is_object_dtype` instead.
24002401
@@ -2431,14 +2432,12 @@ def is_object(self) -> bool:
24312432
>>> idx.is_object()
24322433
False
24332434
"""
2434-
24352435
warnings.warn(
24362436
f"{type(self).__name__}.is_object is deprecated."
24372437
"Use pandas.api.types.is_object_dtype instead",
24382438
FutureWarning,
24392439
stacklevel=find_stack_level(),
24402440
)
2441-
24422441
return is_object_dtype(self.dtype)
24432442

24442443
@final

0 commit comments

Comments
 (0)