def to_csvs(self, path=''):

        subdir = os.path.join(path, self.subject_id)
        try:
            os.makedirs(subdir)
        except:
            pass
        for trial in self.trials_data:
            trial.to_csv(path=subdir)
Store EegSubject to disk as CSVs, one trial per CSV, in a directory.
dataset/ETHPy150Open turambar/pyDatasets/pydatasets/uci/eeg.py/EegSubject.to_csvs