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