Sr. No Name
1 a
2 b
3 c
Imagine this is my excel file.
And
To get the header:
dic = pandas.read_excel(excelfile).columns
convert excel file into dict:
readers = pandas.read_excel(excelfile).to_dict()
To retrieve values:
for reader in readers:
reader['Name']
So if I Retrieve values like that, its showing "list indices must be int, not str". How to resolve this issue.