Calculate shared walls ratio of adjacent elements (typically buildings)
Note that data needs to be topologically correct. Overlapping polygons will lead to
Adapted from [HLM12].
GeoDataFrame containing gdf to analyse
the name of the dataframe column, np.array, or pd.Series where is
stored perimeter value
>>> buildings_df['swr'] = momepy.SharedWallsRatio(buildings_df).series
Series containing resulting values
Series containing used perimeters values
Initialize self. See help(type(self)) for accurate signature.