Numpy Pandas Matplotlib And Pandas Group By Average