-
numpy.core.defchararray.startswith(a, prefix, start=0, end=None)
[source] -
Returns a boolean array which is
True
where the string element ina
starts withprefix
, otherwiseFalse
.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 optionalend
, stop comparing at that position.Returns: out : ndarray
Array of booleans
See also
numpy.core.defchararray.startswith()
2017-01-10 18:13:27
Please login to continue.