pymovements.gaze.GazeDataFrame.clip#

GazeDataFrame.clip(lower_bound: int | float | None, upper_bound: int | float | None, *, input_column: str, output_column: str, **kwargs: Any) None#

Clip gaze signal values.

This method requires a properly initialized experiment attribute.

After success, the gaze dataframe is clipped.

Parameters:
  • lower_bound (int | float | None) – Lower bound of the clipped column.

  • upper_bound (int | float | None) – Upper bound of the clipped column.

  • input_column (str) – Name of the input column.

  • output_column (str) – Name of the output column.

  • **kwargs (Any) – Additional keyword arguments to be passed to the clip() method.

Raises:

AttributeError – If gaze is None or there are no gaze dataframes present in the gaze attribute, or if experiment is None.