I have a dataframe ramp like the following
idx, f1, f2, f3 1, a, a, b 2, b, a, c 3, a, b, c . . . 87 e, e, e
I need to convert other columns to a dictionary list based on idx column. The final result should be:
idx, features 1 , [{f1:a, f2:a, f3:b}, {f1:b, f2:a, f3:c}, {f1:a, f2:b, f3:c}] . . . 87, [{f1: e, f2:e, f3:e}]
Is it possible to do something similar using gangbang in pandas?