Skip to content

Commit 9359527

Browse files
authored
Merge pull request #393 from sgsmob/lint_recursion
Stop lint recursion errors
2 parents e678651 + 4d9c494 commit 9359527

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jhu/delphi_jhu/pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def pull_jhu_data(base_url: str, metric: str, pop_df: pd.DataFrame) -> pd.DataFr
7575
pop_df.rename(columns={'FIPS':'fips'}, inplace=True)
7676
pop_df['fips'] = pop_df['fips'].astype(int).\
7777
astype(str).str.zfill(5)
78-
df = pd.merge(df, pop_df, on="fips", how='left')
78+
df = df.merge(pop_df, on="fips", how='left')
7979

8080
# Add a dummy first row here on day before first day
8181
# code below could be cleaned with groupby.diff

usafacts/delphi_usafacts/geo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def geo_map(df: pd.DataFrame, geo_res: str, map_df: pd.DataFrame, sensor: str):
188188
map_df = map_df.loc[~pd.isnull(map_df[colname])].copy()
189189
map_df["geo_id"] = map_df[colname].astype(int)
190190
df["fips"] = df["fips"].astype(int)
191-
merged = pd.merge(df, map_df, on="fips")
191+
merged = df.merge(map_df, on="fips")
192192
merged["cumulative_counts"] = merged["cumulative_counts"] * merged["pop_prop"]
193193
merged["new_counts"] = merged["new_counts"] * merged["pop_prop"]
194194
merged["population"] = merged["population"] * merged["pop_prop"]

usafacts/delphi_usafacts/pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def pull_usafacts_data(base_url: str, metric: str, pop_df: pd.DataFrame) -> pd.D
7474

7575
# Merge in population LOWERCASE, consistent across confirmed and deaths
7676
# Population for unassigned cases/deaths is NAN
77-
df = pd.merge(df, pop_df, on="FIPS", how="left")
77+
df = df.merge(pop_df, on="FIPS", how="left")
7878

7979
# Change FIPS from 0 to XX000 for statewise unallocated cases/deaths
8080
unassigned_index = (df['FIPS'] == 0)

0 commit comments

Comments
 (0)