text_plain_output_1.png
from glob import glob

import mne

import os

DATA = '../input/sleepstate/sleep-state'
fnames = sorted(glob(os.path.join(DATA, '*.edf')))

raw_train = mne.io.read_raw_edf(fnames[0], preload=True)
annot_train = mne.read_annotations(fnames[1])
raw_train.pick_channels(['Resp oro-nasal'])
raw_train.set_annotations(annot_train, emit_warning=False)
raw_train.plot(start=20000, duration=40000, scalings='auto')