Please explain (by editing your question) whether the “sheet” is an abbreviation of the “spreadsheet” and means the entire XLS file or the abbreviation “worksheet” that makes up the “workbook”.
If by "pivot table" you mean the Excel engine, you're out of luck, because it can only be created by Excel. However, if you mean the cross-tab that you create yourself using Python and the appropriate library, you can do this using the trios xlrd, xlwt, and xlutils.
xlrd that you seem to know about.
xlwt is a fork pyExcelerator with bug fixes and several improvements. pyExcelerator is not supported.
xlutils is a utility module package. xlutils.copy can be used to create the xlwt workbook object from the Book xlrd object so that you can make changes to the xlwt workbook and save it in a file.
Here is your one-stop-shop for more information on the three packages , as well as a tutorial and links to the google group / mailing list, which you can use to get help.
John Machin Apr 27 '10 at 13:39 2010-04-27 13:39
source share