pyarrow.compute.count_substring_regex¶
- pyarrow.compute.count_substring_regex(strings, /, pattern, *, ignore_case=False, options=None, memory_pool=None)¶
Count occurrences of substring.
For each string in strings, emit the number of occurrences of the given regular expression pattern. Null inputs emit null. The pattern must be given in MatchSubstringOptions.
- Parameters:
- stringsArray-like or scalar-like
Argument to compute function.
- pattern
str
Substring pattern to look for inside input values.
- ignore_casebool, default
False
Whether to perform a case-insensitive match.
- options
pyarrow.compute.MatchSubstringOptions
, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.