Lionel Roubeyrie wrote:
> Hi all,
> I try to use recarray with rec.fromrecords on time-series, datas come from a 
> file where they are stored in csv format, with after each data colum there is 
> one column meanning the state of the data, and the first column is for dates.
> Then, is it possible to directly transform column of strings to a integer one 
> (or datetime one), and to remove a not used column?

When I import CSV files into record arrays, I usually read in all of the data 
and transpose the list of rows to get a list of columns. Then I can remove 
columns and transform them _en masse_, usually with map().

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to