[SciPy-user] Save column & row headers to csv file with something like savetxt?

josef.pktd at gmail.com josef.pktd at gmail.com
Sun Dec 21 11:14:10 EST 2008


On Sun, Dec 21, 2008 at 10:50 AM, Timmie <timmichelsen at gmx-topmail.de> wrote:
> Hello Dharhas,
>
>> location,max,min
>> jdm1,6,2
>> jdm2,4.3,1.7
>> mcf1,7.7,2.2
>> ...
>>
>> Is there already a simple way to do this?
>>
>> Another i/o question is that I keep getting a warning that fread is
> depreciated. I am using it to read binary
>> fortran data, what is the appropriate function to use now?
>
> I also looked for something like this but never found it.
> Then I posted a suggestion for the improvement of
> http://thread.gmane.org/gmane.comp.python.numeric.general/23418
>
> Although I have been neglecting the use of structured arrays, these would
> represents a convenient way to save data including headers.
>
> If there is a function in scipy/numpy which can save a structured array to a
> file and writing the the field keywords as column column headers, please tell me.
>
> Thanks and regards,
> Timmie
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>

There is also
http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.rec2txt
and
http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.rec2csv

(I never used them)
Josef



More information about the SciPy-User mailing list