You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / 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_`` dtype

Input array.

Returns

out : ndarray

Output array of StringDType, bytes_ or str_ 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