pyarrow.compute.match_likeยถ

pyarrow.compute.match_like(strings, /, pattern, *, ignore_case=False, options=None, memory_pool=None)ยถ

Match strings against SQL-style LIKE pattern.

For each string in strings, emit true iff it matches a given pattern at any position. โ€˜%โ€™ will match any number of characters, โ€˜_โ€™ will match exactly one character, and any other character matches itself. To match a literal โ€˜%โ€™, โ€˜_โ€™, or โ€˜', precede the character with a backslash. Null inputs emit null. The pattern must be given in MatchSubstringOptions.

Parameters
stringsArray-like or scalar-like

Argument to compute function.

patternstr

Substring pattern to look for inside input values.

ignore_casebool, default False

Whether to perform a case-insensitive match.

optionspyarrow.compute.MatchSubstringOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.