Excel data format:
The file, translated to csv, reads:
{'Details': {0: 'Mickey',
1: nan,
2: nan,
3: nan,
4: 'Doland',
5: nan,
6: nan,
7: nan},
'Unnamed: 1': {0: 'Mouse',
1: nan,
2: nan,
3: nan,
4: nan,
5: nan,
6: nan,
7: nan},
'Unnamed: 2': {0: 'Address1',
1: 'city',
2: 'street',
3: 'hno',
4: 'adress1',
5: 'city',
6: 'street',
7: 'hno'},
'Unnamed: 3': {0: nan, 1: 'xxx', 2: 2, 3: 22, 4: nan, 5: 'zzz', 6: 3, 7: 33},
'Unnamed: 4': {0: 'address2',
1: 'city',
2: 'street',
3: 'hno',
4: 'address2',
5: 'city',
6: 'street',
7: 'hno'},
'Unnamed: 5': {0: nan, 1: 'yyy', 2: 3, 3: 33, 4: nan, 5: 'www', 6: 4, 7: 44}}
How to convert the attached Excel to a dictionary in Python?
Expected dictionary:
dict1 ={'Details':[['Mickey','Mouse',{'Address1': {'city': 'xxx', 'Street': '2', 'hno': '22'}},
{'Address2': {'city': 'yyy', 'Street': '3', 'hno': '33'}}],
['Doland','Duck',{'Address1': {'city': 'xxx', 'Street': '2', 'hno': '22'}},
{'Address2': {'city': 'yyy', 'Street': '3', 'hno': '33'}}]]}

