Answers for "recover dict from 0-d numpy array"

0

recover dict from 0-d numpy array

>>> import numpy as np
>>> np.save('/tmp/data.npy',{'a':'Hi Mom!'})
>>> x=np.load('/tmp/data.npy')
>>> x.item()
{'a': 'Hi Mom!'}
Posted by: Guest on October-30-2021

Code answers related to "recover dict from 0-d numpy array"

Python Answers by Framework

Browse Popular Code Answers by Language