annotation_set_to_vertices

function of dascore.core.annotations source

annotation_set_to_vertices(
    annotations: AnnotationSet ,
)-> ‘pd.DataFrame’

Return the vertices of every path and polygon as a tidy dataframe.

Reached as annotation_set.io.to_vertices.

Parameters

Parameter Description
annotations The set to read.

Examples

import pandas as pd
import dascore as dc
frame = pd.DataFrame(
    {"group": ["event"], "distance_start": [10.0], "distance_end": [80.0]}
)
annotations = dc.AnnotationSet(frame, dims=("time", "distance"))
annotations.io.to_vertices().empty  # a region states no vertices
True