I have data in the below format
| Head | Sub Head | Sub Sub Heads | 20210401 | 20210501 | 20210601 | 20210701 |
|---|---|---|---|---|---|---|
| Sales Accounts | Indirect Tax | GST Return Filing | 11000 | 7000 | 8500 | 3500 |
However, I want to transform it to the below format using Python
>Solution :
Use from melt method in pandas
Read the below doc:
https://pandas.pydata.org/docs/reference/api/pandas.melt.html