Skip to content

Commit 6e859eb

Browse files
committed
fix evalday test
1 parent 01f1d7a commit 6e859eb

File tree

1 file changed

+2
-2
lines changed
  • _delphi_utils_python/delphi_utils/flash_eval

1 file changed

+2
-2
lines changed

_delphi_utils_python/delphi_utils/flash_eval/eval_day.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def apply_ar(last_7, lin_coeff, weekday_correction, non_daily_df, fips_pop_table
119119
"""
120120
y = pd.concat([weekday_correction, non_daily_df], axis=1)
121121
y.index = ['y']
122-
y_hat = pd.Series([np.dot(lin_coeff[x], last_7[x]) for x in y.columns], name='yhat')
123-
y_hat.index = y.columns
122+
y_hat = pd.Series([np.dot(lin_coeff[x], last_7[x]) for x in last_7.columns], name='yhat')
123+
y_hat.index = last_7.columns
124124
df_for_ts = y.T.merge(y_hat, left_index=True,
125125
right_index=True).merge(fips_pop_table,
126126
left_index=True, right_index=True)

0 commit comments

Comments
 (0)