segregation.batch.batch_multiscalar_singlegroup¶
- segregation.batch.batch_multiscalar_singlegroup(gdf, distances, group_pop_var, total_pop_var, progress_bar=True, **kwargs)[source]¶
Batch compute multiscalar profiles for single-group indices.
- Parameters:
- gdf
DataFrameorGeoDataFrame DataFrame holding demographic data for study region
- distances
list list of floats representing bandwidth distances that define a local environment.
- group_pop_var
str The name of variable in data that contains the population size of the group of interest
- total_pop_var
str Variable in data that contains the total population count of the unit
- progress_bar: bool
Whether to show a progress bar during calculation
- **kwargs
dict additional keyword arguments passed to each index (e.g. for setting a random seed in indices like ModifiedGini or ModifiedDissm)
- gdf
- Returns:
pandas.DataFramepandas Dataframe with distance as dataframe index and each segregation statistic as dataframe columns