momepy.
shannon_diversity
Calculates the Shannon’s diversity index of data. Helper function for momepy.Shannon.
momepy.Shannon
Formula adapted from https://gist.github.com/audy/783125
GeoDataFrame containing morphological tessellation
array of top edges of classification bins. Result of binnng.bins.
treat values as categories (will not use bins)
bins
list of categories
Shannon’s diversity index
See also
Calculates the Shannon’s diversity index
momepy.Simpson
Calculates the Simpson’s diversity index
momepy.simpson_diversity