Skip to main content
Ctrl+K

powerplantmatching documentation

Getting Started

  • Get the Data
  • General Structure
  • Example of Use
  • Make your own configuration

API Reference

  • Data Processing Modules
    • BEYONDCOAL
    • BNETZA
    • CARMA
    • Capacity_stats
    • ENTSOE
    • ENTSOE_EIC
    • EXTERNAL_DATABASE
    • GBPT
    • GCPT
    • GEM
    • GEM_GGPT
    • GEO
    • GGPT
    • GGTPT
    • GHPT
    • GNPT
    • GPD
    • GSPT
    • GWPT
    • IRENASTAT
    • IWPDCY
    • JRC
    • OPSD
    • OPSD_VRE
    • OPSD_VRE_country
    • UBA
    • WEPP
    • WIKIPEDIA
    • aggregate_units
    • clean_name
    • clean_powerplantname
    • clean_technology
    • cliques
    • config_target_key
    • gather_and_replace
    • gather_fueltype_info
    • gather_set_info
    • gather_specifications
    • gather_technology_info
    • mode
    • best_matches
    • combine_multiple_datasets
    • compare_two_datasets
    • cross_matches
    • link_multiple_datasets
    • reduce_matched_dataframe
    • collect
    • matched_data
    • powerplants
  • Core Modules
    • get_config
    • get_obj_if_Acc
    • add_geoposition_for_duke
    • duke
    • PowerPlantAccessor

References

  • Contributing
  • Support
  • History of Changes
  • .rst

link_multiple_datasets

Contents

  • link_multiple_datasets()

link_multiple_datasets#

powerplantmatching.matching.link_multiple_datasets(datasets, labels, use_saved_matches=False, config=None, **dukeargs)#

Duke-based horizontal match of multiple databases. Returns the matching indices of the datasets. Compares all properties of the given columns [‘Name’,’Fueltype’, ‘Technology’, ‘Country’, ‘Capacity’,’lat’, ‘lon’] in order to determine the same powerplant in different datasets. The match is in one-to-one mode, that is every entry of the initial databases has maximally one link to the other database. This leads to unique entries in the resulting dataframe.

Parameters:
  • datasets (list of pandas.Dataframe or strings) – dataframes or csv-files to use for the matching

  • labels (list of strings) – Names of the databases in alphabetical order and corresponding order to the datasets

previous

cross_matches

next

reduce_matched_dataframe

Contents
  • link_multiple_datasets()

By Fabian Hofmann, Fabian Gotzens, Jonas Hörsch, Martha Frysztacki

© Copyright 2021, Fabian Hofmann, Fabian Gotzens, Jonas Hörsch, Martha Frysztacki.