bundles / numpy 2.5.0.dev0+git20251130.2de293a / docs
Doc
String functionality
docs/reference:routines.strings
The numpy.strings module provides a set of universal functions operating on arrays of type numpy.str_ or numpy.bytes_. For example,
These universal functions are also used in numpy.char, which provides the numpy.char.chararray array subclass, in order for those routines to get the performance benefits as well.
String operations
.. autosummary:: :toctree:generated/ add center capitalize decode encode expandtabs ljust lower lstrip mod multiply partition replace rjust rpartition rstrip slice strip swapcase title translate upper zfill
Comparison
The numpy.strings module also exports the comparison universal functions that can now operate on string arrays as well.
.. autosummary:: :toctree:generated/ equal not_equal greater_equal less_equal greater less
String information
.. autosummary:: :toctree:generated/ count endswith find index isalnum isalpha isdecimal isdigit islower isnumeric isspace istitle isupper rfind rindex startswith str_len