[SciPy-user] Save column & row headers to csv file withsomething like savetxt?
Fri Dec 19 14:18:00 CST 2008
It looks like scikits.timeseries.lib.reportlib is designed to work on timeseries objects (duh!). Looking at the examples this will be great for some of the other things I'm doing.
What I'm presently trying to save are not the timeseries objects though, they are summary statistics of many model runs. I tried passing ordinary numpy arrays to it just to see if it would work. While it did create a report object I got an error message when trying to display it.
I also constructed fake timeseries out of each variable and set the datefmt='' to not print the dates column. This sorta worked. I have an extra comma in the first column after the blank date.
>>> Pierre GM <email@example.com> 12/19/2008 1:39 PM >>>
Try scikits.timeseries.lib.reportlib and let Matt and I know if you
find it useful and how we can improve it...
On Dec 19, 2008, at 9:07 AM, Dharhas Pothina wrote:
> I have a 2D array of results that my script has calculated. I want
> to save them as a csv file so I can use them in excel or a report
> later. Is there a way to put comment lines, column & row headers in
> the text file? I had a look through the documentation but didn't
> find anything obvious.
> What I would like to do is save a ascii file something like below:
> 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?
> - dharhas
> SciPy-user mailing list
SciPy-user mailing list
More information about the SciPy-user