Question: In Python if I have a dataframe like that: How can I change it to: A A B B year 1998 1999 1998 1998 value
In Python if I have a dataframe like that:

How can I change it to:

A A B B year 1998 1999 1998 1998 value 2 3 2 4 nmn . B 1998 2 2 NN 1999 3 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
