Skip to content

Commit 9308071

Browse files
Jingjing TangJingjing Tang
authored andcommitted
fix the bug
1 parent c2395b7 commit 9308071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

claims_hosp/delphi_claims_hosp/backfill.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def store_backfill_file(claims_filepath, _end_date, backfill_dir):
3636
dtype=Config.CLAIMS_DTYPES,
3737
parse_dates=[Config.CLAIMS_DATE_COL],
3838
)
39-
backfilldata = gmpr.add_geocode(backfilldata, from_code="fips", new_code="state_id",
40-
from_col="fips", new_col="state_id")
4139
backfilldata.rename({"ServiceDate": "time_value",
4240
"PatCountyFIPS": "fips",
4341
"Denominator": "den",
4442
"Covid_like": "num"},
4543
axis=1, inplace=True)
44+
backfilldata = gmpr.add_geocode(backfilldata, from_code="fips", new_code="state_id",
45+
from_col="fips", new_col="state_id")
4646
#Store one year's backfill data
4747
_start_date = _end_date.replace(year=_end_date.year-1)
4848
selected_columns = ['time_value', 'fips', 'state_id',

0 commit comments

Comments
 (0)