tobler.area_weighted.area_join

tobler.area_weighted.area_join(source_df, target_df, variables)[source]

Join variables from source_df based on the largest intersection. In case of a tie it picks the first one.

Parameters:
source_dfgeopandas.GeoDataFrame

GeoDataFrame containing source values

target_dfgeopandas.GeoDataFrame

GeoDataFrame containing source values

variablesstr or list-like

column(s) in source_df dataframe for variable(s) to be joined

Returns:
joinedgeopandas.GeoDataFrame

target_df GeoDataFrame with joined variables as additional columns