pandera.engines.pandas_engine.PythonList

class pandera.engines.pandas_engine.PythonList(generic_type=None)[source]

A datatype to support python generics.

Attributes

auto_coerce

Whether to force coerce to be True in all cases

coercion_model

continuous

Whether the number data type is continuous.

generic_type

special_type

Methods

__init__(generic_type=None)[source]
check(pandera_dtype, data_container=None)[source]

Check that data container has the expected type.

Return type:

Union[bool, Iterable[bool]]

coerce(data_container)[source]

Coerce data container to the specified data type.

Return type:

Union[Series, DataFrame]

coerce_value(value)[source]

Coerce an value to a particular type.

Return type:

Any

try_coerce(data_container)[source]

Coerce data container to the data type, raises a ParserError if the coercion fails :raises: ParserError: if coercion fails

Return type:

Union[Series, DataFrame]

__call__(data_container)[source]

Coerce data container to the data type.