In continuation to this question does anyone know how to output each group groupby returns into a different file?
groupby