The line:
df["max_performance_factor_per_strat"] = df.groupby(["dsp_strategy_id"])[
"performance_factor"
].transform(max)
is throwing the following warning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
How do I resolve this? What is causing it?