I have to convert a numpy array of floats to a string (to store in a SQL DB) and then also convert the same string back into a numpy float array.
This is how I\'m go
First you should use join this way to avoid the last comma issue:
join
VIstring = ','.join(['%.5f' % num for num in VI])
Then to read it back, use numpy.fromstring:
numpy.fromstring
np.fromstring(VIstring, sep=',')