We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aba92a5 + fecca6f commit d626453Copy full SHA for d626453
hhs_hosp/delphi_hhs/run.py
@@ -117,6 +117,11 @@ def run_module(params):
117
df=pop_proportion(df, geo_mapper)
118
df = make_geo(df, geo, geo_mapper)
119
df = smooth_values(df, smoother[0])
120
+ # Fix N/A MA values, see issue #1360
121
+ if geo == "state" and sensor.startswith(CONFIRMED_FLU):
122
+ ma_filter = df.val.isna() & (df.geo_id == "ma") & (df.timestamp > "08-01-2021") & \
123
+ (df.timestamp.dt.day_name() == "Tuesday")
124
+ df = df[~ma_filter]
125
if df.empty:
126
continue
127
sensor_name = sensor + smoother[1]
0 commit comments