A little late, but this is faster for me:
#generate an array with strings
x_arrstr = np.char.mod('%f', x)
#combine to a string
x_str = ",".join(x_arrstr)
Speed up is on my machine about 1.5x
A little late, but this is faster for me:
#generate an array with strings
x_arrstr = np.char.mod('%f', x)
#combine to a string
x_str = ",".join(x_arrstr)
Speed up is on my machine about 1.5x