run_id#
- pymovements.measure.reading.run_id(word_idx: str | Expr = 'word_idx') Expr[source]#
Assign run IDs to fixations.
A run is a contiguous sequence of fixations on the same word. Apply
.over(group_columns)to partition into independent reading sequences.Warning
Requires onset-sorted input within each sequence.
- Parameters:
word_idx (str | pl.Expr) – Column name or expression of the fixated word index. (default:
'word_idx')- Returns:
Expression producing the
run_idcolumn.- Return type:
pl.Expr