Skip to content

Tag: excel

python-win32com excel com model started generating errors

Over the last few days, I have been working on automating the generation of some pivot tables for a number of reports. Boiled down to the minimum, the following code was working without issue: This would pop-up an instance of excel and I could continue working in Python. But suddenly, today my scripts are fai…

How to convert multiple excel sheets to csv python

I want to convert all the excel document(.xls) sheets into csv, If excel document has one sheet only then I am converting like as follow- If my excel(.xls) document have more than one sheet i.e.(‘Sheet1’, ‘Sheet2’, ‘Sheet3’, ‘Sheet4’) than how to convert all she…

How to read only visible sheets from Excel using Pandas?

I have to get some random Excel sheets where I want to read only visible sheets from those files. Consider one file at a time, let’s say I have Mapping_Doc.xls which contains 2-visible sheets and 2-hidden sheets. As the sheets are less here, I can parse them with names like this: Code : Output: How can …