average_attempts = submissions_df.groupby("user_id").agg({"attempts_range":"mean", }) average_attempts There are columns with repeated values in several rows. last_onli