Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read excel into dataframe python

import pandas as pd

sheet1, sheet2 = None, None
with pd.ExcelFile("PATHFileName.xlsx") as reader:
    sheet1 = pd.read_excel(reader, sheet_name='Sheet1')
    sheet2 = pd.read_excel(reader, sheet_name='Sheet2')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #excel #dataframe #python
ADD COMMENT
Topic
Name
9+9 =