load_labels_tsv#
- ethograph.labels.tsv_store.load_labels_tsv(path)[source]#
Load labels from a TSV file.
- Parameters:
path (str or Path) – Path to a
_labels.tsvfile.- Returns:
Columns:
trial,onset_s,offset_s,labels(int),individual,human_verified,changepoint_corrected,prediction_source.- Return type:
pd.DataFrame
Examples
>>> df = load_labels_tsv("experiment/data_labels.tsv") >>> df[["trial", "onset_s", "offset_s", "labels", "individual"]].head() trial onset_s offset_s labels individual 0 1 0.41 0.505 1 crow1 1 1 0.51 0.620 2 crow1