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
Returns a
Series
containing the area of each geometry in theGeoSeries
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
Returns a
GeoSeries
of lower dimensional objects representing each geometry's set-theoretic boundary.bounds
Returns a
DataFrame
with columnsminx
,miny
,maxx
,maxy
values containing the bounds for each geometry.centroid
Returns a
GeoSeries
of points representing the centroid of each geometry.convex_hull
Returns a
GeoSeries
of geometries representing the convex hull of each geometry.crs
The Coordinate Reference System (CRS) represented 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
Returns a
GeoSeries
of geometries representing the envelope of each geometry.exterior
Returns 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_sindex
Check the existence of the spatial index without generating it.
has_z
Returns a
Series
ofdtype('bool')
with valueTrue
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
Returns a
Series
of List representing the inner rings of each polygon in the GeoSeries.is_ccw
Returns a
Series
ofdtype('bool')
with valueTrue
if a LineString or LinearRing is counterclockwise.is_closed
Returns a
Series
ofdtype('bool')
with valueTrue
if a LineString's or LinearRing's first and last points are equal.is_empty
Returns a
Series
ofdtype('bool')
with valueTrue
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
Returns a
Series
ofdtype('bool')
with valueTrue
for features that are closed.is_simple
Returns a
Series
ofdtype('bool')
with valueTrue
for geometries that do not cross themselves.is_unique
Return boolean if values in the object are unique.
is_valid
Returns a
Series
ofdtype('bool')
with valueTrue
for geometries that are valid.length
Returns 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.
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
Returns 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
Returns 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