I have a dataframe that contains a column with countries in: I want to convert the country names to capital cities. Example of how function works:
from countryinfo import CountryInfo
CountryInfo('Lebanon').capital()
Would return 'Beirut'
How can i do this?