Skip to content

Commit ab3ebf2

Browse files
authored
Merge pull request #404 from cmu-delphi/fix/deploy-jhu-linter
JHU: Appease the linter
2 parents 7d50e4e + beb5d87 commit ab3ebf2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

jhu/delphi_jhu/pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"])

jhu/delphi_jhu/run.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
from datetime import datetime
88
from itertools import product
99
from functools import partial
10-
from os.path import join
1110

1211
import numpy as np
13-
import pandas as pd
1412
from delphi_utils import (
1513
read_params,
1614
create_export_csv,

0 commit comments

Comments
 (0)