0

Hi I am trying to flatten one column of a dataframe while i repeat another column. It is a sort of cross join on the same table. Below is an example,

Sample dataframe:

1

I want to flatten this in the following way,

Transformed dataframe:

2

Any help is appreciated.

The Thonnu
  • 3,578
  • 2
  • 8
  • 30

0 Answers0