Thanks Robert
On Mon, Jun 21, 2010 at 11:47 AM, Robert Kern wrote:
> On Mon, Jun 21, 2010 at 13:40, Vishal Rana wrote:
> > 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'
>
On Mon, Jun 21, 2010 at 13:40, Vishal Rana wrote:
> 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'
Note, please do not reach down into numpy.core like this. Use
numpy.core.records is
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
np.save('np.npy', r)
r = np.load('np.npy')
type(r) gives
So my record is lost and converted to ndarray, any idea?
Thanks
Vi