Skip to content

Commit

Permalink
fix(vax,sgp): yet another date format
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrodes committed Apr 13, 2022
1 parent 136549d commit 518f295
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/src/cowidev/vax/batch/singapore.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def _merge_primary_and_boosters(self, df_primary, df_boosters):
try:
df_boosters["vacc_date"] = clean_date_series(df_boosters.vacc_date, "%d-%b-%y")
except:
df_boosters["vacc_date"] = clean_date_series(df_boosters.vacc_date, "%d/%m/%Y")
try:
df_boosters["vacc_date"] = clean_date_series(df_boosters.vacc_date, "%d/%m/%Y")
except:
df_boosters["vacc_date"] = clean_date_series(df_boosters.vacc_date, "%d%b%Y")
df_boosters = df_boosters.drop_duplicates(subset=["vacc_date"], keep=False)
if not df_primary.vacc_date.str.match(r"\d{4}-\d{2}-\d{2}").all():
try:
Expand Down

0 comments on commit 518f295

Please sign in to comment.