Tyble

Tyble

class Tyble[source]

Bases: Sequence[tybles._RowSpec], Generic[tybles._RowSpec]

Describes a Pandas dataframe enriched with a schema

Attributes

Note: attributes inherited from parent classes are not shown here, if any

data_frame

schema

Methods

count

index

Raises ValueError if the value is not present.

to_rows

rtype

Sequence[TypeVar(_RowSpec)]

List of members of Tyble

data_frame: pandas.core.frame.DataFrame
__init__(data_frame, schema)
static __new__(cls, *args, **kwds)
count(value) integer -- return number of occurrences of value
index(value[, start[, stop]]) integer -- return first index of value.

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

schema: tybles.Schema[tybles._RowSpec]
to_rows()[source]
Return type

Sequence[TypeVar(_RowSpec)]