[SciPy-user] Save column & row headersto csv file withsomething like savetxt?

Dharhas Pothina Dharhas.Pothina@twdb.state.tx...
Mon Dec 22 13:38:41 CST 2008


>>> Alan G Isaac <aisaac@american.edu> 12/22/08 11:59 AM >>>
On 12/22/2008 12:38 PM Dharhas Pothina apparently wrote:
> How do I not print quotations around each header and row field

Well you can alter you formatting info to be:
table_fmt = dict( header_fmt = '%s', stub_fmt = '%s',data_fmt="%4.2f")

But keeping the quotes around strings conforms to most CSV
implementations and is generally safer.


PS I added HTML output, fwiw.

SciPy-user mailing list

More information about the SciPy-user mailing list