Apologies if something similar has been asked before, I searched around but couldn\'t figure out a solution.
I have a df like this:
df1 = pd.DataFrame({\'R