Questions tagged [pycountry-convert]

Using country data derived from wikipedia, this package provides conversion functions between ISO country names, country-codes, and continent names.

16 questions
-1
votes
1 answer

'NoneType' object has no attribute 'name' when using the pycountry library

I have a column in a DataFrame with country code and I want to convert it to the name to plot a graph using the library pycountry def get_country(n): country = countries.get(alpha_2 = n) return country.name I want to implement the function…
Taofeek
  • 37
  • 8
1
2