bundles / numpy 2.4.4 / numpy / strings / lower
_ArrayFunctionDispatcher
numpy.strings:lower
source: /numpy/_core/strings.py :1122
Signature
def lower ( a ) Summary
Return an array with the elements converted to lowercase.
Extended Summary
Call str.lower element-wise.
For 8-bit strings, this method is locale-dependent.
Parameters
a: array-like, with ``StringDType``, ``bytes_``, or ``str_`` dtypeInput array.
Returns
out: ndarrayOutput array of
StringDType,bytes_orstr_dtype, depending on input types
Examples
import numpy as np c = np.array(['A1B C', '1BCA', 'BCA1']); c np.strings.lower(c)✓
See also
- str.lower
Aliases
-
numpy.char.lower