Skip to content

Commit 763fac0

Browse files
Jingjing TangJingjing Tang
Jingjing Tang
authored and
Jingjing Tang
committed
revert one week shift
1 parent 6bbc132 commit 763fac0

File tree

1 file changed

+1
-1
lines changed
  • nchs_mortality/delphi_nchs_mortality

1 file changed

+1
-1
lines changed

nchs_mortality/delphi_nchs_mortality/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def export_csv(df, geo_name, sensor, export_dir, start_date):
2626

2727
for date in df["timestamp"].unique():
2828
t = Week.fromdate(pd.to_datetime(str(date)))
29-
date_short = "weekly_" + str(t.year) + str(t.week + 1).zfill(2)
29+
date_short = "weekly_" + str(t.year) + str(t.week).zfill(2)
3030
export_fn = f"{date_short}_{geo_name}_{sensor}.csv"
3131
result_df = df[df["timestamp"] == date][["geo_id", "val", "se", "sample_size"]]
3232
result_df.to_csv(f"{export_dir}/{export_fn}",

0 commit comments

Comments
 (0)