is_first_fixation#
- pymovements.measure.reading.is_first_fixation(word_idx: str | Expr = 'word_idx') Expr[source]#
Flag the first fixation on each word.
Apply
.over(group_columns + ['word_idx'])so the flag is evaluated per word within each reading sequence.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
is_first_fixcolumn.- Return type:
pl.Expr