0

I have a dataframe as given below. The dataframe is imported from a .json file; and I'm required to use pyspark. The Column headers are also unknown.

A|B|C|D|E|F|...
1|2|3|4|5|6|...   

I need help on transposing the above dataset, and output should be displayed as below. And add a header as well

Header 1   Header 2
   A     |    1     |
   B     |    2     |
   C     |    3     |
   D     |    4     |
   E     |    5     |
   F     |    6     |
   .     |    .     |
   .     |    .     |

0 Answers0