I have a dictionary that looks like this :
{'Andrew':['Photography'],'Peter':['Travel']}
I also have a db that looks like this:
ID Hobby
1 Travel
2 Photography
3 Football
..........
I would like to add a thirth column to the Dataframe to achieve:
ID Hobby Name
1 Travel Peter
2 Photography Andrew
3 Football NaN
I did find this Adding a new pandas column with mapped value from a dictionary, but I do not need the column to contain the value from the dictionary, but the key. Thanks