I am new to python pandas module, and I have been stuck in a problem regarding grouping on pivot tables. I have the bellow dataframe:
|------------|----------