Calculates linearity of each LineString object in given GeoDataFrame.
where l is the length of the LineString. MultiLineString returns np.nan.
Adapted from [AF19].
GeoDataFrame containing objects
if True, shows progress bars in loops and indication of steps
>>> streets_df['linearity'] = momepy.Linearity(streets_df).series
Series containing mean distance values.
Initialize self. See help(type(self)) for accurate signature.