group_trials#
- group_trials(df: DataFrame, column: str = 'performance_w', max_points: int = 1000) DataFrame[source]#
At most max_points points per subject: consecutive trials are grouped (as few per group as needed) and each group is one point, at the last trial of the group (total_trial) with the mean of column. Columns: subject, total_trial, column.