NumPy char | multiply method
multiply(~) method takes in an array of strings as well as an array of integers, and each string is repeated as specified.
The strings you want repeated.
The numbers of repeats of each string.
np.char.multiply(["a","b"], [2,3])array(['aa', 'bbb'], dtype='<U3')