Python Compiler With Matplotlib And Pandas Group By Two