mark_skipped_tokens#
- pymovements.measure.reading.mark_skipped_tokens(all_tokens: DataFrame, fixations: DataFrame) DataFrame[source]#
Mark tokens that were never fixated as skipped.
Performs a left join of
all_tokensagainst the set of fixated(trial, page, word_idx)triples and adds a binaryskippedcolumn.- Parameters:
all_tokens (pl.DataFrame) – Full token table as returned by
all_tokens_from_aois(), containing at leasttrial,page, andword_idx.fixations (pl.DataFrame) – Fixation events containing at least
trial,page, andword_idx. Rows with nullword_idxare ignored.
- Returns:
all_tokenswith an additionalskippedcolumn (Int8):1if the token was never fixated,0otherwise.- Return type:
pl.DataFrame