gaitmap.utils.rotations.rotate_dataset_series#

gaitmap.utils.rotations.rotate_dataset_series(dataset: DataFrame, rotations: Rotation) DataFrame[source]#

Rotate data of a single sensor using a series of rotations.

This will apply a different rotation to each sample of the dataset.

Parameters:
dataset

Data with axes names as SF_COLS in consts

rotations

Rotation object that contains as many rotations as there are datapoints

Returns:
rotated_data

copy of data rotated by rotations

See also

gaitmap.utils.rotations.rotate_dataset

Apply a single rotation to the entire dataset