Skip to content

Commit 5fce1dc

Browse files
authoredJun 28, 2021
add comments
1 parent 6e636ee commit 5fce1dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎Tomtom.py

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def etl(rawdata,target,city,historic_avg):
7373
] = df['LiveCongestion'][
7474
i.strftime('%Y-%m-%d') : i.strftime('%Y-%m-%d')
7575
].mean()
76+
77+
# there used to be last year avg
78+
# if it reappears, take daily average instead of 15 min interval by default
7679
if "LastYearAverageCongestion" in df.columns:
7780
df['LastYearAverageCongestionDaily'][
7881
i.strftime('%Y-%m-%d') : i.strftime('%Y-%m-%d')

0 commit comments

Comments
 (0)