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_COLUMNSset: 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_tsvalready discards everything exceptINTERVAL_COLUMNSwhen writing back.- Return type: