0

I have a csv having data like :

enter image description here

I want only the last two columns to be somewhat like transposed like below :

enter image description here

Im using pandas to read in the csv and what the output dataframe to be as above.

Im not sure if we can pivot only specific columns as I want this only applied to last two columns , also I think pivot kind of aggregates the data under same column which i dont want.

ASHISH M.G
  • 522
  • 2
  • 7
  • 23

0 Answers0