Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMau committed Jul 18, 2024
1 parent 6e07cfc commit 91b6efd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data_adapter_oemof/calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ def find_and_replace_irrelevant_data(group_df: pd.DataFrame) -> pd.DataFrame:
fill_indices += group_df[invest_col[0]] == 0

# Fill indices
group_df.loc[fill_indices] = group_df.fillna(group_df.mean(numeric_only=True))
group_df.loc[fill_indices] = group_df.fillna(
group_df.mean(numeric_only=True)
).loc[fill_indices]

return group_df

Expand Down

0 comments on commit 91b6efd

Please sign in to comment.