Created
April 13, 2021 11:23
-
-
Save StephenFordham/6118eef9897839eab9b726e76c91bf4e to your computer and use it in GitHub Desktop.
country_data_cleaning
This file contains hidden or 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
| data_countries = res['country'].to_list() | |
| all_countries = gdf['country'].to_list() | |
| same_countries = [] | |
| different_countries = [] | |
| for country in data_countries: | |
| if country not in all_countries: | |
| different_countries.append(country) | |
| else: | |
| same_countries.append(country) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment