extracting pandas dataframe into different excel sheets 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: how to open excel with more than one sheetpython
import pandas as pd
df = pd.read_excel(excel_file_path, sheetname="sheet_name")