Created
March 16, 2020 15:23
-
-
Save wkarney/15e5b9e5836c5c83d2a01a84bb2d99df to your computer and use it in GitHub Desktop.
[Dealing with Excels with Multiple Tabs etc. in Pandas] #pandas #python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# Read in excel file and gathering sheet names | |
xls = pd.ExcelFile('file_path') | |
sheet_names = xls.sheet_names | |
sheet_names | |
for name in sheet_names: | |
<df_name> = pd.read_excel('file_path', name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment