I have a dataset in Pig that goes like this:
Name Class Subject Marks
Andy 1 Maths 10
John 1 Maths 20
Mark 2 Maths 20
Tony 2 Geo 30
But I need to change it to:
Name Class Maths Geo
Andy 1 10 0
John 1 20 0
Mark 2 20 0
Tony 2 0 30
Can anyone suggest me on how to perform this within Pig?? Also, I am trying to write one Python script that will take the data and do a transpose on that. Thanks in advance :)