We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce78151 commit b547d50Copy full SHA for b547d50
pandas/_libs/lib.pyx
@@ -119,7 +119,8 @@ def is_scalar(val: object) -> bint:
119
- instances of decimal.Decimal
120
- Interval
121
- DateOffset
122
-
+ - Fraction
123
+ - Number
124
"""
125
126
return (cnp.PyArray_IsAnyScalar(val)
@@ -134,8 +135,8 @@ def is_scalar(val: object) -> bint:
134
135
or util.is_period_object(val)
136
or is_decimal(val)
137
or is_interval(val)
- or util.is_offset_object(val))
138
+ or util.is_offset_object(val)
139
+ or np.isscalar(val))
140
141
def item_from_zerodim(val: object) -> object:
142
0 commit comments