How to convert Pandas dataframe from table1 to table 2? actual dataframe is huge. Purpose is to plot a line chart with X axis as date and Y axis as value and legend (Color) as Town per KPI.
Asked
Active
Viewed 22 times
0
-
2`df.melt(id_vars=['Town','Key'], var_name='Date')` – David Erickson May 12 '22 at 18:34