NumPy

Previous topic

String operations

Next topic

numpy.char.multiply

This is documentation for an old release of NumPy (version 1.18). Read this page in the documentation of the latest stable release (version 2.2).

numpy.char.add

numpy.char.add(x1, x2)

Return element-wise string concatenation for two arrays of str or unicode.

Arrays x1 and x2 must have the same shape.

Parameters
x1array_like of str or unicode

Input array.

x2array_like of str or unicode

Input array.

Returns
addndarray

Output array of string_ or unicode_, depending on input types of the same shape as x1 and x2.