pyarrow.compute.match_like

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

Test if the SQL-style LIKE pattern pattern matches a value of a string array.

Parameters
  • array (pyarrow.Array or pyarrow.ChunkedArray) –

  • pattern (str) – SQL-style LIKE pattern. ‘%’ will match any number of characters, ‘_’ will match exactly one character, and all other characters match themselves. To match a literal percent sign or underscore, precede the character with a backslash.

  • ignore_case (bool, default False) – Ignore case while searching.

Returns

result (pyarrow.Array or pyarrow.ChunkedArray)