numpy.char.startswith#
- char.startswith(a, prefix, start=0, end=None)[source]#
Returns a boolean array which is True where the string element in
astarts withprefix, otherwise False.- Parameters:
- aarray-like, with
StringDType,bytes_, orstr_dtype - prefixarray-like, with
StringDType,bytes_, orstr_dtype - start, endarray_like, with any integer dtype
With
start, test beginning at that position. Withend, stop comparing at that position.
- aarray-like, with
- Returns:
- outndarray
Output array of bools
See also