numpy.char.multiply()


Advertisements

This function performs multiple concatenation.

import numpy as np 
print np.char.multiply('Hello ',3)

Its output would be as follows −

Hello Hello Hello 
numpy_string_functions.htm
Advertisements