Current dataframe:
Expected dataframe:
I've tried different things like pivot_table, set_index, unstack, etc. but it's not working as expected. My goal is to have a new dataframe with each row based on a unique combination of 'Col 1', 'Col 2' and 'Col 3'. Also, I need to somehow transpose my data in 'Col 4' and 'Col 5' into different columns with the values in 'Col 4'serving as my new columns. I'm having trouble reshaping the dataframe as I not only have duplicate index values but I also need to transpose on duplicate values in 'Col 4'. Any ideas on how could we accomplish this?
[Apologies for the links of the images for current dataframe and expected result. I could only upload a link in the post, as I'm new to this platform]