I have tried and searched on web and am giving up... I would like to ask you for help with following (I am using Python 3 and Pandas):
Imagine df with the VALUES column containing integers in the sets:
In:
VALUES
0 {2624, 1383, 2855, 1871, 16784, 9811, 2970}
1 {2898, 12, 1871, 223}
2 {2624, 2855, 519, 15662, 1230, 1871, 2970}
3 {2624, 12, 55, 519, 313, 1230, 10588, 2970}
4 {1230, 55, 89564, 1247}
Out desired (only the rows containing specific value e.g. 12 in sets in VALUES, everything else dropped):
VALUES
1 {2898, 12, 1871, 223}
3 {2624, 12, 55, 519, 313, 1230, 10588, 2970}
In next step, I will need to move int 12 to new separate column. Also, I could not find a way how to convert these sets in lists.
VALUES NEW_COL
1 [2898, 1871, 223] 12
3 [2624, 55, 519, 313, 1230, 10588, 2970] 12
Thank you.

