I have a dataframe df where I want to combine rows into one if they meet some condiditions. Before doing that I first create a new column delta.
df
delta