0

I have a dataframe of the form:

ID y z
1 a 8
2 b 4
2 c 5

I want the entries in the 'y' column to appear as columns without any hard coding. the output should be:

ID a b c
1 8
2 4 5
Bisma
  • 1
  • 2

0 Answers0