pyarrow.compute.ends_with#

pyarrow.compute.ends_with(strings, /, pattern, *, ignore_case=False, options=None, memory_pool=None)#

Check if strings end with a literal pattern.

For each string in strings, emit true iff it ends with a given pattern. The pattern must be given in MatchSubstringOptions. If ignore_case is set, only simple case folding is performed.

Null inputs emit null.

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.