Code: new_df = pd.DataFrame() new_df['total'] = df.isup_grade.value_counts() Effect: total028921266621343412493124251224