pandera.engines.pandas_engine.Geometry#

class pandera.engines.pandas_engine.Geometry(crs=None)[source]#

Semantic representation of geopandas geopandas.array.GeometryDtype.

Extends the native GeometryDtype by allowing designation of a coordinate reference system (CRS) as found on GeometryArray, GeoSeries, and GeoDataFrame. When the CRS is defined, validator will check for matching CRS, and coerce will transform coordinate values via GeoPandas’ ‘to_crs’ method. Otherwise, CRS of data is ignored.

Attributes

auto_coerce

Whether to force coerce to be True in all cases

continuous

Whether the number data type is continuous.

crs

Coordinate Reference System of the geometry objects.

type

Native pandas dtype boxed by the data type.

Methods

__init__

check

Check data container to the specified data type.

coerce

Coerce data container to the specified data type.

coerce_value

Coerce an value to a particular type.

try_coerce

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

__call__

Coerce data container to the data type.