0

I have a Python Pandas Dataframe like below :

Original Dataframe

I want to create a Dataframe like this, where the Subject-wise Marks are in separate Columns :

Desired Dataframe

I have tried groupby and agg, but I could not arrive at the desired solution :

Groupby Agg Output

Request you to kindly help me regarding the same, if possible.

Thank you.

0 Answers0