On this page
numpy.char.startswith
numpy.char.startswith(a, prefix, start=0, end=None)-
Returns a boolean array which is
Truewhere the string element inastarts withprefix, otherwiseFalse.Calls
str.startswithelement-wise.- Parameters
-
aarray_like of str or unicodeprefixstrstart, endint, optional-
With optional
start, test beginning at that position. With optionalend, stop comparing at that position.
- Returns
-
outndarray-
Array of booleans
See also
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.char.startswith.html