Answers for "pycountry get"

0

pycountry get

def get_country_code(x):
    return pycountry.countries.get(name=x).alpha_3

df = get_data('data.csv')
df['Code'] = df['Country'].apply(get_country_code)
Posted by: Guest on February-18-2022

Python Answers by Framework

Browse Popular Code Answers by Language