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

T

Return the transpose, which is by definition self.

area

Return a Series containing the area of each geometry in the GeoSeries expressed in the units of the CRS.

array

The ExtensionArray of the data backing this Series or Index.

at

Access a single value for a row/column label pair.

attrs

Dictionary of global attributes of this dataset.

axes

Return a list of the row axis labels.

boundary

Return a GeoSeries of lower dimensional objects representing each geometry's set-theoretic boundary.

bounds

Return a DataFrame with columns minx, miny, maxx, maxy values containing the bounds for each geometry.

centroid

Return a GeoSeries of points representing the centroid of each geometry.

convex_hull

Return a GeoSeries of geometries representing the convex hull of each geometry.

crs

The Coordinate Reference System (CRS) as a pyproj.CRS object.

cx

Coordinate based indexer to select by intersection with bounding box.

dtype

Return the dtype object of the underlying data.

dtypes

Return the dtype object of the underlying data.

empty

Indicator whether Series/DataFrame is empty.

envelope

Return a GeoSeries of geometries representing the envelope of each geometry.

exterior

Return a GeoSeries of LinearRings representing the outer boundary of each polygon in the GeoSeries.

flags

Get the properties associated with this pandas object.

geom_type

Returns a Series of strings specifying the Geometry Type of each object.

geometry

has_m

Return a Series of dtype('bool') with value True for features that have a m-component.

has_sindex

Check the existence of the spatial index without generating it.

has_z

Return a Series of dtype('bool') with value True for features that have a z-component.

hasnans

Return True if there are any NaNs.

iat

Access a single value for a row/column pair by integer position.

iloc

Purely integer-location based indexing for selection by position.

index

The index (axis labels) of the Series.

interiors

Return a Series of List representing the inner rings of each polygon in the GeoSeries.

is_ccw

Return a Series of dtype('bool') with value True if a LineString or LinearRing is counterclockwise.

is_closed

Return a Series of dtype('bool') with value True if a LineString's or LinearRing's first and last points are equal.

is_empty

Returns a Series of dtype('bool') with value True for empty geometries.

is_monotonic_decreasing

Return boolean if values in the object are monotonically decreasing.

is_monotonic_increasing

Return boolean if values in the object are monotonically increasing.

is_ring

Return a Series of dtype('bool') with value True for features that are closed.

is_simple

Return a Series of dtype('bool') with value True for geometries that do not cross themselves.

is_unique

Return boolean if values in the object are unique.

is_valid

Return a Series of dtype('bool') with value True for geometries that are valid.

length

Return a Series containing the length of each geometry expressed in the units of the CRS.

loc

Access a group of rows and columns by label(s) or a boolean array.

m

Return the m coordinate of point geometries in a GeoSeries.

name

Return the name of the Series.

nbytes

Return the number of bytes in the underlying data.

ndim

Number of dimensions of the underlying data, by definition 1.

shape

Return a tuple of the shape of the underlying data.

sindex

Generate the spatial index.

size

Return the number of elements in the underlying data.

total_bounds

Return a tuple containing minx, miny, maxx, maxy values for the bounds of the series as a whole.

type

Return the geometry type of each geometry in the GeoSeries.

unary_union

Return a geometry containing the union of all geometries in the GeoSeries.

values

Return Series as ndarray or ndarray-like depending on the dtype.

x

Return the x location of point geometries in a GeoSeries.

y

Return the y location of point geometries in a GeoSeries.

z

Return the z location of point geometries in a GeoSeries.

Methods