This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

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_`` dtype
sep : str or unicode, optional

If sep is not specified or None, any whitespace string is a separator.

maxsplit : int, optional

If maxsplit is given, at most maxsplit splits are done.

Returns

out : ndarray

Array of list objects

Examples

import numpy as np
x = np.array("Numpy is nice!")

See also

rsplit
str.split

Aliases

  • numpy.char.split