Skip to content

Commit

Permalink
Filter repeated header in municipio csv
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovalle committed Mar 19, 2024
1 parent fe52db5 commit c20b7ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clean/lib/clean_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ def get_filtered_data(self, year, fname):
## TEMP FIXME
# drop row where ESTADO is nan because of an error in the last row
df = df[df['ENTIDAD'].notna()]
# drop repeated header rows
df = df[df['ENTIDAD'] != 'Entidad']

self.check_file(df)

Expand Down

0 comments on commit c20b7ef

Please sign in to comment.