Answers for "convert excel workbook to dataframe"

0

convert excel workbook to dataframe

workbook = pd.ExcelFile('***.xls')
sheets = workbook.sheet_names

df = pd.concat([pd.read_excel(workbook, sheet_name=s)
                .assign(sheet_name=s) for s in sheets])
Posted by: Guest on May-30-2021

Code answers related to "convert excel workbook to dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language