pandas groupby without turning grouped by column into index August 10, 2022 by Tarik df.groupby(['col2','col3'], as_index=False).sum()