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:
176176 - Fraction
177177 - Number.
178178
179- Objects that are explicitly treated as *non-scalar* include:
180- - numpy.ndarray
181- - list
182- - tuple
183- - pandas.Series
184-
185179 Returns
186180 -------
187181 bool
@@ -215,13 +209,6 @@ def is_scalar(val: object) -> bool:
215209 >>> from fractions import Fraction
216210 >>> pd.api.types.is_scalar(Fraction(3, 5))
217211 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
225212 """
226213
227214 # Start with C-optimized checks
@@ -1987,11 +1974,9 @@ cdef class ComplexValidator(Validator):
19871974 return cnp.PyDataType_ISCOMPLEX(self .dtype)
19881975
19891976
1990- cdef bint is_complex_array(ndarray values, bint skipna=True ):
1977+ cdef bint is_complex_array(ndarray values):
19911978 cdef:
1992- ComplexValidator validator = ComplexValidator(values.size,
1993- values.dtype,
1994- skipna=skipna)
1979+ ComplexValidator validator = ComplexValidator(values.size, values.dtype)
19951980 return validator.validate(values)
19961981
19971982
You can’t perform that action at this time.
0 commit comments