[Numpy-discussion] recarray
Robert Kern
robert.kern at gmail.com
Fri Sep 15 09:57:28 EDT 2006
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
More information about the NumPy-Discussion
mailing list