pyarrow.compute.count_substring

pyarrow.compute.count_substring(array, pattern, *, ignore_case=False)[source]

Count the occurrences of substring pattern in each value of a string array.

Parameters
Returns

result (pyarrow.Array or pyarrow.ChunkedArray)