And I want the output to be like:
I have gone through some similar problems, which uses table_pivot method to convert column vales to column and doing aggregation for the values. But that requirement is not suiting my problem definition.
Being new to pandas dataframe, having hard time to understand how to get this output.
Any suggestions would help me.