pymovements.EventGazeProcessor.process#
- EventGazeProcessor.process(events: Events, gaze: pm.Gaze, identifiers: str | list[str], name: str | None = None) pl.DataFrame[source]#
Process event and gaze dataframe.
- Parameters:
events (Events) – Event data to process event properties from.
gaze (pm.Gaze) – Gaze data to process event properties from.
identifiers (str | list[str]) – Column names to join on events and gaze dataframes.
name (str | None) – Process only events that match the name. (default: None)
- Returns:
polars.DataFramewith properties as columns and rows refering to the rows in the source dataframe.- Return type:
pl.DataFrame
- Raises:
ValueError – If list of identifiers is empty.
InvalidProperty – If
property_nameis not a valid property. Seepymovements.eventsfor an overview of supported properties.RuntimeError – If specified event name
nameis missing fromevents.