I am struggling to find a way to transform excel data set to a tabular form using Pandas dataframe.
Source data set description: Column 1 lists metrics names and column 2 onward, all columns have corresponding site wise and date wise metric values. All columns in the row number 1 from column 2 onward have a date to identify which day the data belongs to and row number 3 from column 2 onward to identify which site the data belongs to. Row 4 is where metric name (column 1) and metric values (column 2) start.
Desired output description: Column 1 should list metric names column 2 should list corresponding date of the data and site column 3 should list corresponding site of data and date column 4 should list corresponding metric value
Hope this makes sense. I could have uploaded a sample file but being new to stack overflow, guess need some points to do so.
So far i have tried transpose, melt etc with pandas dataframe but really not able to get the results.
Guess this could be a real challenger for data wrangling experts here.