This warning occurs because your dataframe x is a copy of the fragment. It is not easy to understand why, but it has something to do with how you arrived at your current state.
You can create the correct dataframe from x by doing
x = x.copy()
This will remove the warning, but it does not match
You should use the DataFrame.loc method as the warning prompts, for example:
x.loc[:,'Mass32s'] = pandas.rolling_mean(x.Mass32, 5).shift(-2)
source share