[Tutor] saving .csv file as an xl worksheet
Hugo González Monteverde
hugonz-lists at h-lab.net
Mon Mar 6 22:11:19 CET 2006
Hello,
.xls is a proprietary format used by Microsoft office, and unless you
have the specs for that format and are willing to implement them (very
very hard) it would not make much sense.
If you absolutely need that, then maybe a macro in VBA from Excel itself
may be a better option.
----
Changing the file extension only (just the filename, not the contents of
the file) can be done using the shutil module in Python (high level file
manipulation)
Hugo
arun wrote:
> Hi ,
> Can i save a file with a desired extension??
> for ex: I have a .csv file (test.csv) and i want to save this file as
> test.xls from a python script.
More information about the Tutor
mailing list