Skip to content

Commit 272a17b

Browse files
committed
removed example from code
1 parent fb3e85f commit 272a17b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pandas/core/dtypes/inference.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,6 @@ def is_hashable(obj: object, allow_slice: bool | None = None) -> TypeGuard[Hasha
423423
True
424424
>>> is_hashable(a)
425425
False
426-
>>> is_hashable(slice(1, 2, 3))
427-
True
428-
>>> is_hashable(slice(1, 2, 3), allow_slice=False)
429-
False
430-
>>> is_hashable((slice(1, 2, 3),), allow_slice=False)
431-
False
432-
>>> is_hashable((slice(1, 2, 3),), allow_slice=True)
433-
True
434426
"""
435427
# Unfortunately, we can't use isinstance(obj, collections.abc.Hashable),
436428
# which can be faster than calling hash. That is because numpy scalars

0 commit comments

Comments
 (0)