× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Tue, Dec 4, 2012 at 4:10 PM, Peter Connell <Peter.Connell@xxxxxxxxxx> wrote:
Very interesting.
Do you if there is support for the reverse XLS(x) to CSV?

You can read XLS and XLSX files using the xlrd package, which is
written and maintained by the same guy responsible for xlwt. Python
comes with its own CSV module, so once you're able to read data from
the Excel file, it's rather trivial to write to CSV.

Note that for writing Excel files, xlwt only supports XLS. Right now,
the best Python package I know of for writing to XLSX is openpyxl. It
also reads XLSX but doesn't know how to do anything at all with XLS.
It's written by someone else, and the design is very different from
xlrd and xlwt. I have tried all of these on the i, and they all work,
as far as I can tell.

John

http://pypi.python.org/pypi/xlrd (to read XLS and XLSX)
http://pypi.python.org/pypi/xlwt (to write XLS)
http://pypi.python.org/pypi/openpyxl (to read and write XLSX)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.