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:
aarray_like, with StringDType, bytes_ or str_ dtype
valuesarray_like of values

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

Returns:
outndarray

Output array of StringDType, bytes_ or str_ dtype, depending on input types

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