pandera.engines.geopandas_engine.Geometry¶
- class pandera.engines.geopandas_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_coerceWhether to force coerce to be True in all cases
continuousWhether the number data type is continuous.
crsCoordinate Reference System of the geometry objects.
typeNative pandas dtype boxed by the data type.
Methods
- coerce(data_container)[source]¶
Coerce data container to the specified data type.
- Return type:
Union[Series,DataFrame,GeoSeries,GeoDataFrame]