count the number of occurrence of values based on another column,df.Country.value_counts().reset_index(name='Sum of Accidents')