Skip to content

Commit

Permalink
fill in model name nans
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 9, 2024
1 parent 940a8b8 commit f676cc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pvsite_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit f676cc4

Please sign in to comment.