Hi I am having the following hypothetical df
df = pd.DataFrame({ \'sp\' : [\'MM1\', \'MM1\', \'MM1\', \'MM2\', \'MM2\', \'MM2\', \'MM4\', \'MM4\',\'MM4\'], \'