i have a df of country codes:
cntr
0 CN
1 CH
and I want to map the full name and region I have from a dictionary
cntrmap = {"CN":["China","Asia"],"CH":["Switzerland","Europe"]}
I was hoping in something like this, but doesn't work..
df['name'] = df['cntr'].map(cntrmap)[0]
df['region'] = df['cntr'].map(cntrmap)[1]
do you guys have any suggestion? thanks everyone!