Skip to content

Commit 4d9c494

Browse files
committed
stop pylint recursion error in usafacts
1 parent 35b97ef commit 4d9c494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)