I would like to convert a multi-dimensional Numpy array into a string and, later, convert that string back into an equivalent Numpy array.
I do not want to save the
If you want to save the dtype as well you can also use the pickle module from python.
dtype
pickle
import pickle import numpy as np a = np.ones(4) string = pickle.dumps(a) pickle.loads(string)