pymovements.Events.drop#

Events.drop(columns: str | list[str]) None[source]#

Remove columns from the events data frame.

Notes

The minimal schema columns name, onset and offset cannot be removed.

Parameters:

columns (str | list[str]) – The columns in the event data frame to remove.

Raises:

ValueError – If columns do not exist in the event dataframe or it is not allowed to remove them.