pandera.engines.pandas_engine.ArrowInt64

class pandera.engines.pandas_engine.ArrowInt64[source]

Semantic representation of a pyarrow.int64.

Attributes

auto_coerce

Whether to force coerce to be True in all cases

bit_width

Number of bits used by the machine representation.

continuous

Whether the number data type is continuous.

exact

Whether the data type is an exact representation of a number.

signed

Whether the integer data type is signed.

type

Native pandas dtype boxed by the data type.

Methods

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

Check that pandera DataType are equivalent.

Parameters:
  • pandera_dtype (DataType) – Expected DataType.

  • data_container (Union[Series, DataFrame, None]) – Data container, used by data types that require the actual data for validation.

Return type:

Union[bool, Iterable[bool]]

Returns:

boolean scalar or iterable of boolean scalars, indicating which elements passed the check.

coerce(data_container)[source]

Pure coerce without catching exceptions.

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.