-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Line number 1025 in AoE_cal.py,
df[output_name] = df[aoe_param] / pars["mu"]
produces a SettingWithCopyWarning:
SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value insteadSee the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
This should be fixed by replacing it with
df.loc[:, output_name] = df[aoe_param] / pars["mu"]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels