semantique.label

Contents

semantique.label#

semantique.label(x)[source]#

Character label of a numeric index.

Object representing a character label of a numeric index. Can be used to query values in an array by their label rather than by the value itself.

Parameters:

x (str) – The character label of the value of interest.

Returns:

dict – JSON-serializable object that contains the label, and can be understood by the query processor as such.

Examples

>>> import semantique as sq
>>> sq.label("high")