Skip to content

Commit

Permalink
wb data now removes NaN countries
Browse files Browse the repository at this point in the history
  • Loading branch information
gidden committed Aug 21, 2017
1 parent 1d5914a commit dae729f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salamanca/data.py
Expand Up @@ -157,6 +157,9 @@ def query(self, indicator, tries=5, use_cache=True, overwrite=False, **kwargs):
df['date'] = df['date'].astype(int)
except:
pass
# remove NaN countries
# TODO: why are there NaNs?
df = df.dropna(subset=['country'])

# write to disc if we're caching
if use_cache and (not exists or overwrite):
Expand Down

0 comments on commit dae729f

Please sign in to comment.