Skip to content

Commit

Permalink
Merge pull request #167 from lkstrp/pandas-future-warnings
Browse files Browse the repository at this point in the history
fix: resolve auto downcasting pandas warning
  • Loading branch information
FabianHofmann authored Jun 11, 2024
2 parents cfff7f0 + 1279b87 commit f58d5e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion powerplantmatching/cleaning.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ def aggregate_units(

df = cliques(df, duplicates)
df = df.groupby("grouped").agg(props_for_groups)
df[str_cols] = df[str_cols].replace("", np.nan)

df[str_cols] = df[str_cols].replace("", pd.NA)

df = (
df.assign(
Expand Down

0 comments on commit f58d5e0

Please sign in to comment.