xarray.core.accessor_str.StringAccessor.endswith

StringAccessor.endswith(pat)

Test if the end of each string in the array matches a pattern.

Parameters

pat (str) – Character sequence. Regular expressions are not accepted.

Returns

endswith (array of bool) – A Series of booleans indicating whether the given pattern matches the end of each string element.