geosnap.analyze.segdyn.multigroup_tempdyn¶
- geosnap.analyze.segdyn.multigroup_tempdyn(gdf, groups=None, time_index='year', index_kwargs=None)[source]¶
Batch compute multigroup segregation indices for each time period.
- Parameters:
- gdf
geopandas.GeoDataFrame
geodataframe formatted as a long-form timeseries
- groups
list
list of columns on gdf containing population counts for each group of interest
- time_index
str
column on the dataframe that denotes unique time periods, by default “year”
- index_kwargs
dict
dictionary of additional keyword arguments passed to segregation.batch.batch_compute_multigroup
- gdf
- Returns:
geopandas.GeoDataFrame
dataframe with unique segregation indices as rows and estimates for each time period as columns