geosnap.analyze.lincs_from_gdf

geosnap.analyze.lincs_from_gdf(gdf, unit_index, temporal_index, cluster_col, periods='all')[source]

generate local indicators of neighborhood change from a long-form geodataframe

Parameters:
gdfgeopandas.GeoDataFrame

long-form dataframe holding neighborhood/category labels

unit_indexstr

name of column in dataframe that identifies unique spatial units

temporal_indexstr

name of column in dataframe that identifies unique time periods

cluster_colstr

name of column in dataframe that identifies “neighborhood” labels for each unit

periodslist, optional

list of time periods to include in the analysis. If “all”, then all unique entries in the temporal_index column will be used (by default “all”)

Returns:
geopandas.GeoDataFrame

dataframe with linc values as rows