def METHOD_NAME(self, path: Path | str) -> None:
    data_frame = read_spreadsheet(path)
    if "trial_type" not in data_frame.columns:
        logger.warning(f'No "trial_type" column in "{path}"')
        return
    data_frame = data_frame.astype(dict(trial_type=str), copy=False)
    groupby = data_frame.groupby(by="trial_type")
    onsets_mapping = groupby["onset"].apply(list).to_dict()
    durations_mapping = groupby["duration"].apply(list).to_dict()
    for condition in groupby.groups.keys():
        assert isinstance(condition, str)
        self.conditions.append(condition)
        self.onsets.append(onsets_mapping[condition])
        self.durations.append(durations_mapping[condition])