Skip to content

Commit b6754ff

Browse files
committed
Revert all changes to pandas/_libs/lib.pyx (remove from PR)
1 parent e4deebc commit b6754ff

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

pandas/_libs/lib.pyx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ def is_scalar(val: object) -> bool:
176176
- Fraction
177177
- Number.
178178

179-
180179
Returns
181180
-------
182181
bool
@@ -210,13 +209,6 @@ def is_scalar(val: object) -> bool:
210209
>>> from fractions import Fraction
211210
>>> pd.api.types.is_scalar(Fraction(3, 5))
212211
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
220212
"""
221213

222214
# Start with C-optimized checks
@@ -1982,11 +1974,9 @@ cdef class ComplexValidator(Validator):
19821974
return cnp.PyDataType_ISCOMPLEX(self.dtype)
19831975

19841976

1985-
cdef bint is_complex_array(ndarray values, bint skipna=True):
1977+
cdef bint is_complex_array(ndarray values):
19861978
cdef:
1987-
ComplexValidator validator = ComplexValidator(values.size,
1988-
values.dtype,
1989-
skipna=skipna)
1979+
ComplexValidator validator = ComplexValidator(values.size, values.dtype)
19901980
return validator.validate(values)
19911981

19921982

0 commit comments

Comments
 (0)