Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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!'}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #recover #dict #numpy #array
ADD COMMENT
Topic
Name
7+6 =