Skip to content

Commit

Permalink
idk exactly why the "nan"s began existing but this fixes it
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgosnell committed Nov 7, 2023
1 parent fcf4ccc commit 095d31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pudl/analysis/classify_plants_ferc1.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def revert_filled_in_string_nulls(df: pd.DataFrame) -> pd.DataFrame:
if col in df.columns:
# the replace to_replace={column_name: {"", pd.NA}} mysteriously doesn't work.
df[col] = df[col].replace(
to_replace=[""],
to_replace=["", "nan"],
value=pd.NA,
)
return df
Expand Down

0 comments on commit 095d31b

Please sign in to comment.