2008/9/22 frank wang <[EMAIL PROTECTED]>:
> It will load an array has two columns. However, I only want to load one
> column to save the memory. If I type
>
> fid=loadtxt('filename.csv',comments='"',dtype='|S4',converters={0:lambda
> s:int(s,16)},usecols=(1,))

You are specifying a converter that won't be in the output.  I can fix
that, but in the meantime do:

np.loadtxt('dat.dat',comments='"',dtype='|S4',converters={1:lambda
s:int(s,16)},usecols=(1,))
[(565,), (919,)]
|S4

Regards
Stéfan
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to