F
F
ForRestDp2020-09-19 20:50:19
Python
ForRestDp, 2020-09-19 20:50:19

Why parsing an Excel file gives incorrect Sheet names?

I need to parse an xlsx file. The file contains a sheet called '1A'. However, when I use . I called and noticed that the font of the A in the dictionary key is different from all the A 's elsewhere. How can this be fixed? pd.read_excel(file, sheet_name='1A')XLRDError: No sheet named <'1A'>pd.read_excel(file, sheet_name=None)
5f664444c086b241212606.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
akelsey, 2020-09-19
@ForRestDp

probably the name of the sheet in the international layout, and not in Ansi - you can fix it by opening the Excel and renaming the sheet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question