import pandas as pd excel = pd.ExcelFile('xxx.xlsx') xxx_projects = excel.parse ('project', index_col = "url") df_xxx= pd.DataFrame(xxx_projects)
From the sheet named project, url is indexed by the column and the contents are fetched.
index_col is not required either. However, it feels like it can have a role as an index by specifying it.
In other words, it feels like you're specifying the url as the index row. If not specified, the line starts at 0.
Recommended Posts