landing_position#

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

Compute the character index of the first fixation on each word (LP).

Parameters:

fixations (pl.DataFrame) – Fixation table containing at least trial, page, word_idx, onset, and char_idx columns.

Returns:

DataFrame with columns trial, page, word_idx, and LP.

Return type:

pl.DataFrame