(Sorry about that, I pressed Reply instead of Reply all. Not my
day for emails...)
On Dec 1, 2008, at 1:54 PM, John Hunter wrote:
It looks like I am doing something wrong -- trying to parse a CSV
file
with dates formatted like '2008-10-14', with::
import datetime, sys
import
On Mon, Dec 1, 2008 at 1:14 PM, Pierre GM [EMAIL PROTECTED] wrote:
The problem you have is that the default dtype is 'float' (for
backwards compatibility w/ the original np.loadtxt). What you want
is to automatically change the dtype according to the content of
your file: you should use
On Dec 1, 2008, at 2:26 PM, John Hunter wrote
OK, that worked great. I do think some a default impl in np.rec which
returned a recarray would be nice. It might also be nice to have a
method like np.rec.fromcsv which defaults to a delimiter=',',
names=True and dtype=None. Since csv is one