I have a DF like below
df = pd.DataFrame({\'category\' : [\'A\', \'A\', \'A\', \'B\', \'B\', \'B\', \'C\', \'C\'], \'size\': [20, 0, 10, 30