I have my main dataframe, df_main, which is shaped like this:
df_main
df_main = pd.DataFrame({ \'GroupID\': ([1]*7) + ([2]*2) + ([3]*6), \'GroupN