I have the below table which shows company tickers along the x-axis and dates on the y-axis with share price information in the table. The table has Nan values for certain company tickers until their IPO date where their share price information is then put on the table. I would like to pivot this table so the tickers will then be on the y-axis with counting figures up to 180 (180 days) on the x-axis. These counting figures would represent each day from IPO day (day 1) for each individual company ticker and therefore show the relevant share pricing information for that company's day 1, day 2 -> day 180 etc.
AC ACQRW ADVWW API ... VRAX VRRM VSAC VYGR
Date ...
2015-01-02 NaN NaN NaN NaN ... NaN NaN NaN NaN
2015-01-05 NaN NaN NaN NaN ... NaN NaN NaN NaN
2015-01-06 NaN NaN NaN NaN ... NaN NaN NaN NaN
2015-01-07 NaN NaN NaN NaN ... NaN NaN NaN NaN
2015-01-08 NaN NaN NaN NaN ... NaN NaN NaN NaN
... ... ... ... ... ... ... ... ... ...
2022-11-25 40.494820 NaN NaN 2.62 ... 1.360 15.86 10.140 5.51
2022-11-28 40.265415 NaN NaN 2.50 ... 1.350 15.66 10.140 5.57
2022-11-29 38.500000 NaN NaN 2.65 ... 1.320 15.51 10.140 5.54
2022-11-30 40.450001 NaN NaN 3.14 ... 1.565 15.85 10.240 5.94
2022-12-01 40.299999 NaN NaN 2.94 ... 1.610 15.82 10.176 6.04
I have spent hours with CHATGPT and tried many different pivots but can't seem to easily get the relevant days' pricing information for each company.