You have to use the pd.read_excel
.
See the answer to your question here:
Using Pandas to pd.read_excel() for multiple worksheets of the same workbook
You can also take a look at the original source:
pandas.read_excel
Also I have an excel file, the first sheet has 17,000 rows and the second sheet has 3,000 rows and the columns of both sheets are the same. The name of the first sheet is "1" and the name of the second sheet is "2". Here I showed how to read each separately and together.
import pandas as pd
df1 = pd.read_excel('file.xlsx',sheet_name = '1')
df2 = pd.read_excel('file.xlsx',sheet_name = '2')
df3 = pd.read_excel('file.xlsx',sheet_name = ['1','2'])
df4 = pd.concat(df3, axis=0, ignore_index=True)
print('df1:',len(df1))
print('df2:',len(df2))
print('df3:',len(df3))
print('df4:',len(df4))
Output:
df1: 17000
df2: 3000
df3: 2
df4: 20000