numpy / 1.22.0 / reference / generated / numpy.char.startswith.html /

numpy.char.startswith

char. startswith ( a, prefix, start=0, end=None ) [source]

Returns a boolean array which is True where the string element in a starts with prefix, otherwise False.

Calls str.startswith element-wise.

Parameters
a array_like of str or unicode
prefix str
start, end int, optional

With optional start, test beginning at that position. With optional end, stop comparing at that position.

Returns
out ndarray

Array of booleans

See also

str.startswith

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.char.startswith.html