segregation.batch.batch_compute_multigroup

segregation.batch.batch_compute_multigroup(gdf, groups, **kwargs)[source]

Batch compute multi-group indices.

Parameters:
gdfDataFrame or GeoDataFrame

DataFrame holding demographic data for study region

groupslist

The variables names in data of the groups of interest of the analysis.

**kwargsdict

additional keyword arguments passed to each index (e.g. for setting a random seed in indices like ModifiedGini or ModifiedDissm)

Returns:
pandas.DataFrame

dataframe with statistic name as dataframe index and statistic value as dataframe values