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_df
geopandas.GeoDataFrame
GeoDataFrame containing source values
- target_df
geopandas.GeoDataFrame
GeoDataFrame containing source values
- variables
str
or list-like column(s) in source_df dataframe for variable(s) to be joined
- source_df
- Returns:
- joined
geopandas.GeoDataFrame
target_df GeoDataFrame with joined variables as additional columns
- joined