xarray.DataArray.str.startswith

DataArray.str.startswith(pat)

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

Parameters

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

Returns

startswith – An array of booleans indicating whether the given pattern matches the start of each string element.

Return type

array of bool