I want to read a .xlsx file using the Pandas Library of python and port the data to a postgreSQL table.
All I could do up until now is:
im
Assign spreadsheet filename to file
file
Load spreadsheet
Print the sheet names
Load a sheet into a DataFrame by name: df1
file = 'example.xlsx' xl = pd.ExcelFile(file) print(xl.sheet_names) df1 = xl.parse('Sheet1')