xarray.core.accessor_str.StringAccessor.startswith

StringAccessor.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 (array of bool) – An array of booleans indicating whether the given pattern matches the start of each string element.