I have two DataFrames which I want to combine completely, meaning for each row in A, all rows in B are joined. No matching on any index or column needs to be performed.
DataFrame A:
idx | A
0 | foo
1 | bar
DataFrame B:
idx | A
0 | alpha
1 | beta
Result in:
DataFrame AB
idxA idxB | A_left | A_right
0 0 | foo | alpha
1 | foo | beta
1 0 | bar | alpha
1 | bar | beta
Join and merge always expect a index or column to merge on. The cartesian product throws away the index, but I also want to combine the indices as in the example above.