File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -176,12 +176,6 @@ def is_scalar(val: object) -> bool:
176
176
- Fraction
177
177
- Number.
178
178
179
- Objects that are explicitly treated as *non-scalar* include:
180
- - numpy.ndarray
181
- - list
182
- - tuple
183
- - pandas.Series
184
-
185
179
Returns
186
180
-------
187
181
bool
@@ -215,13 +209,6 @@ def is_scalar(val: object) -> bool:
215
209
>>> from fractions import Fraction
216
210
>>> pd.api.types.is_scalar(Fraction(3, 5))
217
211
True
218
-
219
- >>> from enum import Enum , auto
220
- >>> class Thing(Enum ):
221
- ... one = auto ()
222
- ... two = auto ()
223
- >>> pd.api.types.is_scalar(Thing.one)
224
- False
225
212
"""
226
213
227
214
# Start with C-optimized checks
@@ -1987,11 +1974,9 @@ cdef class ComplexValidator(Validator):
1987
1974
return cnp.PyDataType_ISCOMPLEX(self .dtype)
1988
1975
1989
1976
1990
- cdef bint is_complex_array(ndarray values, bint skipna=True ):
1977
+ cdef bint is_complex_array(ndarray values):
1991
1978
cdef:
1992
- ComplexValidator validator = ComplexValidator(values.size,
1993
- values.dtype,
1994
- skipna=skipna)
1979
+ ComplexValidator validator = ComplexValidator(values.size, values.dtype)
1995
1980
return validator.validate(values)
1996
1981
1997
1982
You can’t perform that action at this time.
0 commit comments