A GeoDataFrame contains a geospatial dataset. It is just like a pandas DataFrame but with some additional functionality for working with geospatial data. This additional functionality is as follows:
- A .geometry attribute that always returns the column that includes geometry information (returning a GeoSeries). The column name itself does not necessarily need to be .geometry, but it will always be accessible as the .geometry attribute.
- It has some extra methods for working with spatial data (area, distance, buffer, intersection, and so on), all of which we will look at in later chapters.
GeoDataFrame is still a DataFrame, so we have all the functionalities that we have available for DataFrames. We can perform aggregation, sorting, ...