We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a831f commit c1caf7fCopy full SHA for c1caf7f
pandas/lib.pyx
@@ -899,13 +899,29 @@ def clean_index_list(list obj):
899
900
return maybe_convert_objects(converted), 0
901
902
+
903
+ctypedef fused pandas_t:
904
+ str
905
+ unicode
906
+ float32_t
907
+ float64_t
908
+ uint8_t
909
+ uint16_t
910
+ uint32_t
911
+ uint64_t
912
+ int8_t
913
+ int16_t
914
+ int32_t
915
+ int64_t
916
917
918
@cython.boundscheck(False)
919
@cython.wraparound(False)
-def max_len_string_array(ndarray[object] arr):
920
+def max_len_string_array(pandas_t[:] arr):
921
""" return the maximum size of elements in a 1-dim string array """
922
cdef:
923
Py_ssize_t i, m = 0, l = 0, length = arr.shape[0]
- object v
924
+ pandas_t v
925
926
for i in range(length):
927
v = arr[i]
0 commit comments