pandera.typing.geopandas.GeoSeries¶
- class pandera.typing.geopandas.GeoSeries(data=None, index=None, crs=None, **kwargs)[source]¶
Representation of geopandas.GeoSeries, only used for type annotation.
Attributes
TReturn the transpose, which is by definition self.
areaReturns a
Seriescontaining the area of each geometry in theGeoSeriesexpressed in the units of the CRS.arrayThe ExtensionArray of the data backing this Series or Index.
atAccess a single value for a row/column label pair.
attrsDictionary of global attributes of this dataset.
axesReturn a list of the row axis labels.
boundaryReturns a
GeoSeriesof lower dimensional objects representing each geometry's set-theoretic boundary.boundsReturns a
DataFramewith columnsminx,miny,maxx,maxyvalues containing the bounds for each geometry.centroidReturns a
GeoSeriesof points representing the centroid of each geometry.convex_hullReturns a
GeoSeriesof geometries representing the convex hull of each geometry.crsThe Coordinate Reference System (CRS) represented as a
pyproj.CRSobject.cxCoordinate based indexer to select by intersection with bounding box.
dtypeReturn the dtype object of the underlying data.
dtypesReturn the dtype object of the underlying data.
emptyIndicator whether Series/DataFrame is empty.
envelopeReturns a
GeoSeriesof geometries representing the envelope of each geometry.exteriorReturns a
GeoSeriesof LinearRings representing the outer boundary of each polygon in the GeoSeries.flagsGet the properties associated with this pandas object.
geom_typeReturns a
Seriesof strings specifying the Geometry Type of each object.geometryhas_sindexCheck the existence of the spatial index without generating it.
has_zReturns a
Seriesofdtype('bool')with valueTruefor features that have a z-component.hasnansReturn True if there are any NaNs.
iatAccess a single value for a row/column pair by integer position.
ilocPurely integer-location based indexing for selection by position.
indexThe index (axis labels) of the Series.
interiorsReturns a
Seriesof List representing the inner rings of each polygon in the GeoSeries.is_ccwReturns a
Seriesofdtype('bool')with valueTrueif a LineString or LinearRing is counterclockwise.is_closedReturns a
Seriesofdtype('bool')with valueTrueif a LineString's or LinearRing's first and last points are equal.is_emptyReturns a
Seriesofdtype('bool')with valueTruefor empty geometries.is_monotonic_decreasingReturn boolean if values in the object are monotonically decreasing.
is_monotonic_increasingReturn boolean if values in the object are monotonically increasing.
is_ringReturns a
Seriesofdtype('bool')with valueTruefor features that are closed.is_simpleReturns a
Seriesofdtype('bool')with valueTruefor geometries that do not cross themselves.is_uniqueReturn boolean if values in the object are unique.
is_validReturns a
Seriesofdtype('bool')with valueTruefor geometries that are valid.lengthReturns a
Seriescontaining the length of each geometry expressed in the units of the CRS.locAccess a group of rows and columns by label(s) or a boolean array.
nameReturn the name of the Series.
nbytesReturn the number of bytes in the underlying data.
ndimNumber of dimensions of the underlying data, by definition 1.
shapeReturn a tuple of the shape of the underlying data.
sindexGenerate the spatial index
sizeReturn the number of elements in the underlying data.
total_boundsReturns a tuple containing
minx,miny,maxx,maxyvalues for the bounds of the series as a whole.typeReturn the geometry type of each geometry in the GeoSeries
unary_unionReturns a geometry containing the union of all geometries in the
GeoSeries.valuesReturn Series as ndarray or ndarray-like depending on the dtype.
xReturn the x location of point geometries in a GeoSeries
yReturn the y location of point geometries in a GeoSeries
zReturn the z location of point geometries in a GeoSeries
Methods