I am trying to retrieve data from excel and put them into the following format in python:
dataset={
'User A': {'Lady in the Water': 2.5,
'Snakes on a Plane': 3.5,
'Just My Luck': 3.0,
'Superman Returns': 3.5,
'You, Me and Dupree': 2.5,
'The Night Listener': 3.0},
'Gene Seymour': {'Lady in the Water': 3.0,
'Snakes on a Plane': 3.5,
'Just My Luck': 1.5,
'Superman Returns': 5.0,
'You, Me and Dupree': 3.5,
'The Night Listener': 3.0
}}
Where the excel file looks like
User A User B
Lady in the Water 2.5 3
Snakes on a Plane 3.5 3.5
Just My Luck 3 1.5
Superman Returns 3.5 5
You, Me and Dupree 2.5 3.5
The Night Listener 3 3