Pandas: add notebook on groupby api