pymovements.datasets.toy_dataset.ToyDataset.compute_event_properties#
- ToyDataset.compute_event_properties(event_properties: str | list[str], verbose: bool = True) None[source]#
Calculate an event property for and add it as a column to the event dataframe.
- Parameters:
event_properties – The event properties to compute.
verbose (bool) – If
True, show progress bar.
- Raises:
InvalidProperty – If
property_nameis not a valid property. Seepymovements.events.event_propertiesfor an overview of supported properties.