Skip to content

Instantly share code, notes, and snippets.

@StephenFordham
Created April 13, 2021 11:23
Show Gist options
  • Save StephenFordham/6118eef9897839eab9b726e76c91bf4e to your computer and use it in GitHub Desktop.
Save StephenFordham/6118eef9897839eab9b726e76c91bf4e to your computer and use it in GitHub Desktop.
country_data_cleaning
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