geopandas.GeoDataFrame.active_geometry_name#
- property GeoDataFrame.active_geometry_name[source]#
Return the name of the active geometry column.
Returns a name if a GeoDataFrame has an active geometry column set, otherwise returns None. The return type is usually a string, but may be an integer, tuple or other hashable, depending on the contents of the dataframe columns.
You can also access the active geometry column using the
.geometryproperty. You can set a GeoSeries to be an active geometry using theset_geometry()method.- Returns:
- str or other index label supported by pandas
name of an active geometry column or None
See also
GeoDataFrame.set_geometryset the active geometry