File tree 2 files changed +1
-3
lines changed 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:
14
14
df = pd .read_csv (base_url .format (metric = metric ))
15
15
# Keep the UID and the time series columns only
16
16
# 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 (
18
18
id_vars = ["UID" ], var_name = "timestamp" , value_name = "cumulative_counts"
19
19
)
20
20
df ["timestamp" ] = pd .to_datetime (df ["timestamp" ])
Original file line number Diff line number Diff line change 7
7
from datetime import datetime
8
8
from itertools import product
9
9
from functools import partial
10
- from os .path import join
11
10
12
11
import numpy as np
13
- import pandas as pd
14
12
from delphi_utils import (
15
13
read_params ,
16
14
create_export_csv ,
You can’t perform that action at this time.
0 commit comments