pymovements.events.EventDataFrame.add_trial_column#

EventDataFrame.add_trial_column(column: str | list[str], data: int | float | str | list[int | float | str] | None) None#

Add new trial columns with constant values.

Parameters:
  • column (str | list[str]) – The name(s) of the new trial column(s).

  • data (int | float | str | list[int | float | str] | None) – The values to be used for filling the trial column(s). In case multiple columns are provided, data must be a list of values matching the provided column order.