I have a datafrme like this:
test = pd.DataFrame({'label':['a','C','D','E','b','b','c','c','c'], 'text':['a','c','d','e','b','b','c','c','c'],'title':['a','c','d','e','b','b','c','c','c']})
How could I add the content of the skipped row to the previous row when 'C','D','E' appear as a sequence. The ideal output would be:
test = pd.DataFrame({'label':['a','C','D','E','b','b','c','c','c'], 'text':['a','c','d','e','b','b','c','c','c'],'title':['a','c(e)','d','e','b','b','c','c','c']})

