bundles / numpy latest / numpy / strings / _split
_ArrayFunctionDispatcher
numpy.strings:_split
source: build-install/usr/lib/python3.14/site-packages/numpy/_core/strings.py :1399
Signature
def _split ( a , sep = None , maxsplit = None ) Summary
For each element in a, return a list of the words in the string, using sep as the delimiter string.
Extended Summary
Calls str.split element-wise.
Parameters
a: array-like, with ``StringDType``, ``bytes_``, or ``str_`` dtypesep: str or unicode, optionalIf
sepis not specified or None, any whitespace string is a separator.maxsplit: int, optionalIf
maxsplitis given, at mostmaxsplitsplits are done.
Returns
out: ndarrayArray of list objects
Examples
import numpy as np x = np.array("Numpy is nice!")✓
See also
- rsplit
- str.split
Aliases
-
numpy.char.split