yasa.EpochByEpochAgreement.get_sleep_stats#

EpochByEpochAgreement.get_sleep_stats()[source]#

Return a pandas.DataFrame of sleep statistics for each hypnogram derived from both reference and observed scorers.

Returns:
sstatspandas.DataFrame

A DataFrame with sleep statistics as columns and two rows for each session (one for reference scorer and another for observed scorer), indexed by (scorer, sleep_id). When subjects was given, a subject_id level is inserted in between, i.e. (scorer, subject_id, sleep_id). SleepStatsAgreement reads the subjects from this level to account for the repeated measures.