0

edited as previous question was not clear enough

I want to combine two DataFrames with no overlapping data, and just duplicate the data for each record.

letters = [['a', 'b', 'c'], ['d', 'e', 'f']]

numbers = [[1, 2, 3], [4, 5, 6]]

letters = pd.DataFrame(letters)
    0  1  2
0   a  b  c
1   d  e  f


numbers = pd.DataFrame(numbers)
    0  1  2
0   1  2  3
1   4  5  6

I want to combine these two DataFrames to look like this.

a b c 1 2 3
a b c 4 5 6
d e f 1 2 3
d e f 4 5 6

I've tried all of the join types ('inner', 'outer, etc), merges, and concats that I'm familiar with.

ac2001
  • 726
  • 1
  • 6
  • 19

0 Answers0