geopandas.GeoDataFrame.active_geometry_name#

property GeoDataFrame.active_geometry_name[source]#

Return the name of the active geometry column

Returns a string name if a GeoDataFrame has an active geometry column set. Otherwise returns None. You can also access the active geometry column using the .geometry property. You can set a GeoSeries to be an active geometry using the set_geometry() method.

Returns:
str

name of an active geometry column or None

See also

GeoDataFrame.set_geometry

set the active geometry