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 0852419 commit fecca6fCopy full SHA for fecca6f
hhs_hosp/delphi_hhs/run.py
@@ -119,10 +119,9 @@ def run_module(params):
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)
+ ma_filter = df.val.isna() & (df.geo_id == "ma") & (df.timestamp > "08-01-2021") & \
+ (df.timestamp.dt.day_name() == "Tuesday")
+ df = df[~ma_filter]
126
if df.empty:
127
continue
128
sensor_name = sensor + smoother[1]
0 commit comments