I have this dictionary which I scraped from Wikipedia. The dictionary contains continents and their respective countries. For example:
theWorld = {'Asia': ['China', 'Malaysia'.. etc], 'Europe': ['Germany', 'Italy' ..etc]}
I am trying to make a dataframe using pandas to map a country to its continent. For example:
Country Continent
China Asia
Malaysia Asia
Germany Europe
Ghana Africa
and so on and so fort.