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

Dharhas Pothina Dharhas.Pothina@twdb.state.tx...
Mon Dec 22 10:55:34 CST 2008

+1 . I agree with Timmie that the ability to add a simple header, row names and comment lines at the beginning/end of a file would be a powerful addition to savetxt(). When dealing with lots of generated data files it is extremely important to be able to be add some basic metadata to the file so that what it contains is easily understandable and usable.

- dharhas

>>> Timmie <timmichelsen@gmx-topmail.de> 12/21/08 9:52 AM >>>
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 

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,

SciPy-user mailing list

More information about the SciPy-user mailing list