an example how i tried to solve it
df = pd.DataFrame({\'vals\': [1, 2, 3, 4, 5], \'ids\': [\'a\', \'b\', \'f\', \'n\',\'k\'], \'ids2\':[\'a\'