tobler.area_weighted.area_tables_binning

tobler.area_weighted.area_tables_binning(source_df, target_df)[source]

Construct area allocation and source-target correspondence tables using a spatial indexing approach

Parameters
source_dfgeopandas.GeoDataFrame

GeoDataFrame containing input data and polygons

target_dfgeopandas.GeoDataFramee

GeoDataFrame defining the output geometries

Returns
tablesscipy.sparse.dok_matrix