Suppose I have a pandas dataframe like this:
my_id val_a_b val_a val_c 0 id_1 rat|white rat 1 1 id_2 dog|brown dog 0