Back to Numerical Arrays (NumPy)
np.startswith
Return true for each element if the string starts with prefix.
Syntax
np.startswith(a, prefix, start?, end?)
Description
Return true for each element if the string starts with prefix.
Parameters
| Name | Description |
|---|---|
| a | - Input string array |
| prefix | - Prefix to check |
| start(optional) | - Start position (default 0) |
| end(optional) | - End position (default string length) |
Returns
NDArray