numpy array serialize to string 1

numpy array serialize to string

myNumpyArray = np.random.rand((3,3))
numpyString = str(myNumpyArray.tolist()) 

Here is what the above code is Doing:
1. Create a numpy array
2. Convert the numpy array to a list
3. Convert the list to a string

Similar Posts