I am currently working on a code in which the user inputs a pdf file with data and converts that data to an excel file, however, I am trying to use that same code to generate whatever data but that new data will appear in the same excel file as a new sheet. For example:
User inputs: Data1.pdf Converts to excel file name: Report.xlsx Sheet1 = Data1 User inputs: Data2.pdf Converts to excel file name: Report.xlsx Sheet2 = Data2 . . . and so on...
I am currently using
df.to_excel(filetype_xlsx,sheet_name = "DATA1", index=False)
If anyone can help me with this would be greatly appreciated!
source https://stackoverflow.com/questions/73858219/excel-and-python-need-assistance
Comments
Post a Comment