Skip to content

Commit

Permalink
Remove VNM data prior to local transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-ragonnet committed Sep 7, 2023
1 parent a97f4b9 commit 7638f3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autumn/projects/sm_covid2/common_school/project_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ def get_school_project_timeseries(iso3, sero_data):
table_name="owid", conditions={"iso_code": iso3}, columns=["date", "new_deaths"]
)
data = remove_death_outliers(iso3, data)
if iso3 == "VNM": # remove early data points associated with few deaths prior to local transmission
data = data[pd.to_datetime(data["date"]) >= "15 May 2021"]

# apply moving average
data["smoothed_new_deaths"] = data["new_deaths"].rolling(7).mean()[6:]
Expand Down

0 comments on commit 7638f3a

Please sign in to comment.