open_in_new
content_copy
df.groupby('ID', as_index=False)['Value'].sum()