GeoPandas is a Python library for working with vector data. It is based on the pandas
library that is part of the SciPy stack. SciPy is a popular library for data inspection and analysis, but unfortunately, it cannot read spatial data. GeoPandas was created to fill this gap, taking pandas
data objects as a starting point. The library also adds functionality from geographical Python packages.
GeoPandas offers two data objects—a GeoSeries object that is based on a pandas
Series object and a GeoDataFrame, based on a pandas
DataFrame object, but adding a geometry column for each row. Both GeoSeries and GeoDataFrame objects can be used for spatial data processing, similar to spatial databases. Read and write functionality is provided for almost every vector data format. Also, because both Series and DataFrame objects are subclasses from pandas data objects, you can use the same properties to select or subset data, for example .loc
or .iloc
.
GeoPandas is a library that employs the capabilities...