SciPy

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

numpy.core.defchararray.multiply

numpy.core.defchararray.multiply(a, i)[source]

Return (a * i), that is string multiple concatenation, element-wise.

Values in i of less than 0 are treated as 0 (which yields an empty string).

Parameters :

a : array_like of str or unicode

i : array_like of ints

Returns :

out : ndarray

Output array of str or unicode, depending on input types