Let\'s say I have the array:
import numpy as np x = np.array([1.2334, 2.3455, 3.456], dtype=np.float32)
import numpy as np
x = np.array([1.2334, 2.3455, 3.456], dtype=np.float32)
and want to print:
If you still want format
format
list(map('{:.2f}%'.format,x)) Out[189]: ['1.23%', '2.35%', '3.46%']