I have a dataframe as shown below:
data = {\'sid\':[1,1,1,2,2,2], \'field1\':[\'start\', None, None, \'start\', None, None], \'field2\':[\'a\