Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jhu/delphi_jhu/pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def download_data(base_url: str, metric: str) -> pd.DataFrame:
df = pd.read_csv(base_url.format(metric=metric))
# Keep the UID and the time series columns only
# The regex filters for columns with the date format MM-DD-YY or M-D-YY
df = df.filter(regex="\d{1,2}\/\d{1,2}\/\d{2}|UID").melt(
df = df.filter(regex=r"\d{1,2}\/\d{1,2}\/\d{2}|UID").melt(
id_vars=["UID"], var_name="timestamp", value_name="cumulative_counts"
)
df["timestamp"] = pd.to_datetime(df["timestamp"])
Expand Down
2 changes: 0 additions & 2 deletions jhu/delphi_jhu/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
from datetime import datetime
from itertools import product
from functools import partial
from os.path import join

import numpy as np
import pandas as pd
from delphi_utils import (
read_params,
create_export_csv,
Expand Down