momepy.unique_id#

momepy.unique_id(objects)[source]#

Add an attribute with a unique ID to each row of a GeoDataFrame.

Parameters
objectsGeoDataFrame

A GeoDataFrame containing objects to analyse.

Returns
seriesSeries

A Series containing resulting values.