I have a sample dataframe:
data = {\'IDs\': [\'1\', \'1\', \'2\', \'2\', \'3\', \'3\', \'3\', \'4\', \'4\', \'5\', \'5\'], \'Terms\': ["a", &quo