get_trial_from_tsv#

ethograph.labels.tsv_store.get_trial_from_tsv(all_df, trial)[source]#

Extract all rows for a single trial from the all-labels DataFrame.

Returns a DataFrame with the full TSV_COLUMNS set: trial, individual, labels, onset_s, offset_s, plus per-trial metadata columns. Callers that only need interval data can ignore the extras; set_trial_in_tsv already discards everything except INTERVAL_COLUMNS when writing back.

Return type:

DataFrame