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.
1 parent 83ba3f9 commit 0852419Copy full SHA for 0852419
hhs_hosp/delphi_hhs/run.py
@@ -117,6 +117,12 @@ 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
+ print(df.shape, geo, smoother, sensor)
123
+ df = df[~np.logical_and(np.logical_and(df.val.isna(), df.geo_id == "ma"),
124
+ df.timestamp > "08-01-2021")]
125
+ print(df.shape)
126
if df.empty:
127
continue
128
sensor_name = sensor + smoother[1]
0 commit comments