empty_intervals#
- ethograph.labels.intervals.empty_intervals()[source]#
Create an empty intervals DataFrame with the correct columns and dtypes.
- Returns:
Empty DataFrame with columns
onset_s,offset_s,labels,individual,event_type.- Return type:
pd.DataFrame
Examples
>>> from ethograph.labels.intervals import empty_intervals >>> df = empty_intervals() >>> df.columns.tolist() ['onset_s', 'offset_s', 'labels', 'individual', 'event_type'] >>> len(df) 0