visions.types.ordinal

class visions.types.ordinal.Ordinal[source]

Ordinal implementation of visions.types.type.VisionsBaseType.

Examples

>>> import pandas as pd
>>> import visions
>>> x = pd.Series([1, 2, 3, 1, 1], dtype='category')
>>> x in visions.Ordinal
True
static contains_op(item, state)[source]

ordinal_contains(sequence: Sequence, state: dict) -> bool

ordinal_contains(series: pandas.core.series.Series, state: dict) -> bool

Return type

bool