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:
gdfgeopandas.GeoDataFrame

geodataframe formatted as a long-form timeseries

groupslist

list of columns on gdf containing population counts for each group of interest

time_indexstr

column on the dataframe that denotes unique time periods, by default “year”

index_kwargsdict

dictionary of additional keyword arguments passed to segregation.batch.batch_compute_multigroup

Returns:
geopandas.GeoDataFrame

dataframe with unique segregation indices as rows and estimates for each time period as columns