File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ def is_scalar(val: object) -> bool:
176
176
- Fraction
177
177
- Number.
178
178
179
-
180
179
Returns
181
180
-------
182
181
bool
@@ -210,13 +209,6 @@ def is_scalar(val: object) -> bool:
210
209
>>> from fractions import Fraction
211
210
>>> pd.api.types.is_scalar(Fraction(3, 5))
212
211
True
213
-
214
- >>> from enum import Enum , auto
215
- >>> class Thing(Enum ):
216
- ... one = auto ()
217
- ... two = auto ()
218
- >>> pd.api.types.is_scalar(Thing.one)
219
- False
220
212
"""
221
213
222
214
# Start with C-optimized checks
@@ -1982,11 +1974,9 @@ cdef class ComplexValidator(Validator):
1982
1974
return cnp.PyDataType_ISCOMPLEX(self .dtype)
1983
1975
1984
1976
1985
- cdef bint is_complex_array(ndarray values, bint skipna=True ):
1977
+ cdef bint is_complex_array(ndarray values):
1986
1978
cdef:
1987
- ComplexValidator validator = ComplexValidator(values.size,
1988
- values.dtype,
1989
- skipna=skipna)
1979
+ ComplexValidator validator = ComplexValidator(values.size, values.dtype)
1990
1980
return validator.validate(values)
1991
1981
1992
1982
You can’t perform that action at this time.
0 commit comments