Skip to content

Commit a47688f

Browse files
committed
Remove misleading docstring line about non-sequence objects in is_scalar
1 parent 34dd9a1 commit a47688f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/_libs/lib.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def is_scalar(val: object) -> bool:
175175
- DateOffset
176176
- Fraction
177177
- Number.
178-
- Any other non-sequence objects (e.g. Enum members, custom objects)
179178

180179
Objects that are explicitly treated as *non-scalar* include:
181180
- numpy.ndarray
@@ -222,7 +221,7 @@ def is_scalar(val: object) -> bool:
222221
... one = auto()
223222
... two = auto()
224223
>>> pd.api.types.is_scalar(Thing.one)
225-
True
224+
False
226225
"""
227226
228227
# Start with C-optimized checks

0 commit comments

Comments
 (0)