delta_in#

pymovements.measure.reading.delta_in(word_idx: str | Expr = 'word_idx', prev_word_idx: str | Expr = 'prev_word_idx') → Expr[source]#

Compute the difference in word index from the previous fixation.

Row-wise, no window needed.

Parameters:
  • word_idx (str | pl.Expr) – Column name or expression of the fixated word index. (default: 'word_idx')

  • prev_word_idx (str | pl.Expr) – Column name or expression of the previous fixation’s word index. (default: 'prev_word_idx')

Returns:

Expression producing the delta_in column.

Return type:

pl.Expr