Re: [Pytables-users] turning 1-d numpy array to 2-d

2008-07-28 Thread Francesc Alted
A Wednesday 23 July 2008, Kevin Christman escrigué: > I have a Pytables table called Data. I do kExp = > Data.readWhere('(MotorCompany == "Reliance")') to pick out some of > the data. Now the type(kExp) is numpy.ndarray, and kExp.shape is > (500,). but the type(kExp[0]) is numpy.void, and kExp[0]

[Pytables-users] turning 1-d numpy array to 2-d

2008-07-23 Thread Kevin Christman
I have a Pytables table called Data. I do kExp = Data.readWhere('(MotorCompany == "Reliance")') to pick out some of the data. Now the type(kExp) is numpy.ndarray, and kExp.shape is (500,). but the type(kExp[0]) is numpy.void, and kExp[0] looks like a list. I would like kExp to be a 2-dimensio