Trying to use the following to get the mean of a rolling window over pandas :
df[\'my_variable\'] = df \\ .groupby(\'another_variable\') \\ .r