0

I have two datasets with different lengths and I want to combine them such that:

Amazon
a
b
c

And

Google
x
y
z

Combine together to give result:

Amazon Google
a x
a y
a z
b x
b y
b z
c x
c y
c z
  • 1
    This may help: [Performant cartesian product (CROSS JOIN) with pandas](https://stackoverflow.com/questions/53699012/performant-cartesian-product-cross-join-with-pandas) – sj95126 Jan 07 '22 at 17:34
  • If you have a older version of pandas you could try to play with explode. – rpanai Jan 07 '22 at 18:24

0 Answers0