annotate_delta_in#

pymovements.measure.reading.annotate_delta_in(fixations: DataFrame) DataFrame[source]#

Annotate fixations with the difference in word index from the previous fixation.

Parameters:

fixations (pl.DataFrame) – Fixation-level DataFrame. Must contain word_idx and prev_word_idx columns.

Returns:

Input DataFrame with an additional delta_in column.

Return type:

pl.DataFrame