value_kind

function of dascore.utils.intervals source

value_kind(
    value ,
)-> ‘str’

Return the value kind which decides an interval group’s shape.

Boolean groups state membership and may overlap; string and numeric groups are single valued where they project onto a coordinate.

Examples

from dascore.utils.intervals import value_kind
value_kind(True), value_kind("car"), value_kind(1)
('boolean', 'string', 'numeric')