[Numpy-discussion] Numpy save / load
Vishal Rana
ranavishal@gmail....
Mon Jun 21 13:40:39 CDT 2010
I have tried:
x1=np.array([1,2,3,4])
x2=np.array(['a','dd','xyz','12'])
x3=np.array([1.1,2,3,4])
r = np.core.records.fromarrays([x1,x2,x3],names='a,b,c'
type(r) gives <class 'numpy.core.records.recarray'>
np.save('np.npy', r)
r = np.load('np.npy')
type(r) gives <type 'numpy.ndarray'>
So my record is lost and converted to ndarray, any idea?
Thanks
Vishal Rana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100621/d5f40ea8/attachment.html
More information about the NumPy-Discussion
mailing list