I have a Python Pandas Dataframe like below :
I want to create a Dataframe like this, where the Subject-wise Marks are in separate Columns :
I have tried groupby and agg, but I could not arrive at the desired solution :
Request you to kindly help me regarding the same, if possible.
Thank you.