From: Robert K. <rob...@gm...> - 2006-09-15 13:58:22
|
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 |