Skip to content

Commit c4e3ba0

Browse files
BUG: add function to check whether data is all scalar in pandas.array
1 parent 8d41928 commit c4e3ba0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/_libs/lib.pyx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,7 @@ cpdef ndarray[object] ensure_string_array(
862862
return result
863863

864864

865-
@cython.wraparound(False)
866-
@cython.boundscheck(False)
867-
cpdef bool is_all_scalar(obj: list | tuple):
868-
# Optimized for lists and tuples
865+
def is_all_scalar(obj: list | tuple) -> bool:
869866
cdef:
870867
Py_ssize_t i, n = len(obj)
871868
bool all_scalars = True

0 commit comments

Comments
 (0)