I have two columns from different dataframes with different length (60,14), I want to compare each item of 60 with all items of 14 then put the result in another column with related comparing columns. I have the result of comparing in a list of lists [outer_list for col_60[inner_list for result 1,1], [inner_list for result 1,2],....[inner_list for result(60,14]]
my problem is how to form a dataframe in this format ? (col_60 = 60 rows, col_14 = 14*60, col_result = 14*60 rows):
NOTE: columns' items are lists
col_60 col_14 col_result
1 result_of(1,1)
2 result_of(1,2)
3 ..
1 4
..
.. ..
.. ..
13 result_of(1,13)
14 result_of(1,14)
____________________________________________
1 result_of(2,1)
2 result_of(2,2)
3 ..
2 4
..
.. ..
.. ..
13 result_of(2,13)
14 result_of(2,14)
____________________________________________
1 result_of(3,1)
2 result_of(3,2)
3 ..
3 4
..
.. ..
.. ..
13 result_of(3,13)
14 result_of(3,14)
____________________________________________
..
..
..
I used the accepted answer in this question but it stacks result column without related columns, and this question results NaN