I know how to get the list of sheet names. The excel file I am using has multiple sheets. How do I select the first one sequentially ? I don't know the name of the sheet but I need to select the first one. How would I go about this ?
13
votes
3 Answers
24
votes
2
votes
Also this bug at the time of writing: https://github.com/pandas-dev/pandas/issues/17107
Use 'sheetname', not 'sheet_name'.
0
votes
Following the official documentation and as already suggested by EdChum, it's enough to use read_excell passing sheetname=N as argument. N=0 for the first sheet, N=1 for the second, N=2 for the third and so on..
read_excel
thesheetname
param defaults to0
which is the first sheet - EdChum