Search and return rows underneath in python dataframe and transpose
问题 I have a dataframe with text scraped online in each row which contains sports selection information (all in the same column). I am trying to transpose the data so that: print(df): Col A Random text sentence Random text sentence Random text sentence Race 1 - Handicap 14 - NAME 3 - NAME 5 - NAME 6 - NAME Race Overview: lorem ipsum etc etc Race 2 - Sprint 12 - NAME 10 - NAME 8 - NAME 11 - NAME Race Overview: Second lorem ipsum etc etc Becomes: Race Name | Selection No | Selection | Race Overview