Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #excel #workbook #dataframe
ADD COMMENT
Topic
Name
4+1 =