From f676cc468e17172b63bcd3cfd381c0601004a28c Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Mon, 9 Dec 2024 12:52:43 +0000 Subject: [PATCH] fill in model name nans --- src/pvsite_forecast.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pvsite_forecast.py b/src/pvsite_forecast.py index e6790c0..e853511 100644 --- a/src/pvsite_forecast.py +++ b/src/pvsite_forecast.py @@ -359,6 +359,9 @@ def convert_df(df: pd.DataFrame): # round all columns to 3 decimal places metrics = metrics.round(3) + # model name is None change to "None" + metrics["model_name"] = metrics["model_name"].fillna("None") + # make mode_name the columns by pivoting, and make the index the other columns value_columns = one_metric_data.keys() value_columns = [i for i in value_columns if i != "model_name"]