Skip to content

Commit

Permalink
Fix 1/2 vaccinations ¬¬
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor Magán committed Jan 5, 2022
1 parent f3fbf5e commit 4220264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/ministry_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_column_data(self, column, part=0, cast=int, num_rows=19):
ccaa = self.data_frame[first_column][i].replace('*', '').replace('(', '').replace(')', '').replace('Leon', 'León').strip().replace('\r', ' ').replace('-', '').replace(' arra', 'arra')
ccaa = ' '.join(ccaa.split())
value_str = str(self.data_frame[self.data_frame.columns[column]][i]).split(' ')[part]
value_str = re.sub("\\.0$", "", value_str)
value_str = re.sub("\\.\\d$", "", value_str)
value = value_str.replace('.', '').replace('-', '0').replace(',', '.').replace('%', '')
cases[ccaa] = cast(value)

Expand Down

0 comments on commit 4220264

Please sign in to comment.