Apologies if something similar has been asked before, I searched around but couldn\'t figure out a solution.
I have a dataframe like such:
df = pd.DataFram