Skip to content

Commit 10b2747

Browse files
DOC: Clarify that is_scalar treats Enum members as scalar
1 parent 197d5d9 commit 10b2747

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/lib.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ def is_scalar(val: object) -> bool:
248248
or isinstance(val, Interval)
249249
or is_offset_object(val)
250250
or isinstance(val, Enum))
251+
252+
251253
cdef int64_t get_itemsize(object val):
252254
"""
253255
Get the itemsize of a NumPy scalar, -1 if not a NumPy scalar.

0 commit comments

Comments
 (0)