xarray.core.accessor_str.StringAccessor.endswith

StringAccessor.endswith(pat)

Test if the end of each string element matches a pattern.

Parameters:pat (str) – Character sequence. Regular expressions are not accepted.
Returns:endswith – A Series of booleans indicating whether the given pattern matches the end of each string element.
Return type:array of bool