Code has been added to clipboard!

Getting the Sum of Group Values With Pandas Groupby

Example
df.groupby('Employee')['Hours'].sum().to_frame().reset_index().sort_values(by='Hours')