Created
March 17, 2021 13:53
-
-
Save kurasaiteja/43647cdaa4f2054a5d33f8b209a8aa54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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