xarray.DataArray.str.endswith

DataArray.str.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 – A Series of booleans indicating whether the given pattern matches the end of each string element.

Return type

array of bool