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:
 - gdf
geopandas.GeoDataFrame long-form dataframe holding neighborhood/category labels
- unit_index
str name of column in dataframe that identifies unique spatial units
- temporal_index
str name of column in dataframe that identifies unique time periods
- cluster_col
str name of column in dataframe that identifies “neighborhood” labels for each unit
- periods
list, 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”)
- gdf
 - Returns:
 geopandas.GeoDataFramedataframe with linc values as rows