xarray.core.accessor_str.StringAccessor.startswith

StringAccessor.startswith(pat)

Test if the start of each string element 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