From 095d31bdf34ca12ca86f5f5b69f3a4b0479968d3 Mon Sep 17 00:00:00 2001 From: Christina Gosnell Date: Tue, 7 Nov 2023 16:55:58 -0500 Subject: [PATCH] idk exactly why the "nan"s began existing but this fixes it --- src/pudl/analysis/classify_plants_ferc1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pudl/analysis/classify_plants_ferc1.py b/src/pudl/analysis/classify_plants_ferc1.py index 1a0f2835f6..68393c0699 100644 --- a/src/pudl/analysis/classify_plants_ferc1.py +++ b/src/pudl/analysis/classify_plants_ferc1.py @@ -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