read multiple sheets excel pandas code example
Example 1: how to read excel file with multiple sheets in python
xls = pd.ExcelFile('path_to_file.xls')
df1 = pd.read_excel(xls, 'Sheet1')
df2 = pd.read_excel(xls, 'Sheet2')
Example 2: merge multiple excel workssheets into a single dataframe
df = pd.concat(pd.read_excel(workbook_url, sheet_name=None), ignore_index=True)
Example 3: how to open excel with more than one sheetpython
import pandas as pd
df = pd.read_excel(excel_file_path, sheetname="sheet_name")