a = {'A' : [1,2,3,4],
'B' : [[1,4,5,6],[2,3,6],[4,5,6]],
'C' : [[1,4,6],[3,5],[4,10],[10]]
}
Base on dataframes: How to find the intersection and union set between column B and C? the output like that:
    A      B           C          intersect       union
0   1   [1,4,5,6]    [1,4,6]      [1,4,6]        [1,4,5,6]
1   2   [2,3,6]      [3,5]        [3]            [2,3,5,6]
2   3   [4,5,6]      [4,10]       [4]            [4,5,6,10]
3   4   [4,5,6]      [10]         []             [4,5,6,10]
 
    