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_idxandprev_word_idxcolumns.- Returns:
Input DataFrame with an additional
delta_incolumn.- Return type:
pl.DataFrame