Skip to content

Instantly share code, notes, and snippets.

@kurasaiteja
Created March 17, 2021 13:53
Show Gist options
  • Save kurasaiteja/43647cdaa4f2054a5d33f8b209a8aa54 to your computer and use it in GitHub Desktop.
Save kurasaiteja/43647cdaa4f2054a5d33f8b209a8aa54 to your computer and use it in GitHub Desktop.
vaccine_df.country = vaccine_df.country.replace().replace({
"Czechia": "Czech Republic",
"United States": "USA",
"United Kingdom": "UK",
"Isle of Man": "Isle Of Man",
"Republic of Ireland": "Ireland",
"Northern Cyprus" : "Cyprus"
})
#These 4 countries are a part of UK
vaccine_df = vaccine_df[vaccine_df.country.apply(lambda x: x not in ['England', 'Scotland', 'Wales', 'Northern Ireland'])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment