File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def download_data(base_url: str, metric: str) -> pd.DataFrame:
1414 df = pd .read_csv (base_url .format (metric = metric ))
1515 # Keep the UID and the time series columns only
1616 # The regex filters for columns with the date format MM-DD-YY or M-D-YY
17- df = df .filter (regex = "\d{1,2}\/\d{1,2}\/\d{2}|UID" ).melt (
17+ df = df .filter (regex = r "\d{1,2}\/\d{1,2}\/\d{2}|UID" ).melt (
1818 id_vars = ["UID" ], var_name = "timestamp" , value_name = "cumulative_counts"
1919 )
2020 df ["timestamp" ] = pd .to_datetime (df ["timestamp" ])
Original file line number Diff line number Diff line change 77from datetime import datetime
88from itertools import product
99from functools import partial
10- from os .path import join
1110
1211import numpy as np
13- import pandas as pd
1412from delphi_utils import (
1513 read_params ,
1614 create_export_csv ,
You can’t perform that action at this time.
0 commit comments