0

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

Source Format

However, I want to transform it to the below format using Python

Target Format

  • 1
    [pandas.melt](https://pandas.pydata.org/docs/reference/api/pandas.melt.html)? – Michael S. Jul 25 '22 at 18:12
  • 1
    Does this answer your question? [Doing the opposite of pivot in pandas Python](https://stackoverflow.com/questions/48135994/doing-the-opposite-of-pivot-in-pandas-python) – Michael S. Jul 25 '22 at 18:31

0 Answers0