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

Pierre GM pgmdevlist@gmail....
Sun Dec 21 13:09:44 CST 2008


All,
You remmbr how I tried to improve loadtxt by incorporating some  
elements of matploltib.mlab.csv2rec ? We could probably do the same  
thing for rec2csv, using elements of reportlib. I'll try to work on  
that in the next few weeks...


On Dec 21, 2008, at 11:14 AM, josef.pktd@gmail.com wrote:

> On Sun, Dec 21, 2008 at 10:50 AM, Timmie <timmichelsen@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@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
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list