numpy / 1.22.0 / reference / generated / numpy.char.mod.html /

numpy.char.mod

char. mod ( a, values ) [source]

Return (a % i), that is pre-Python 2.6 string formatting (interpolation), element-wise for a pair of array_likes of str or unicode.

Parameters
a array_like of str or unicode
values array_like of values

These values will be element-wise interpolated into the string.

Returns
out ndarray

Output array of str or unicode, depending on input types

See also

str.__mod__

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.char.mod.html