powerplantmatching
latest

Getting Started

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

API Reference

  • Data Processing Modules
    • powerplantmatching.data Module
    • powerplantmatching.cleaning Module
    • powerplantmatching.matching Module
      • Functions
        • best_matches
        • combine_multiple_datasets
        • compare_two_datasets
        • cross_matches
        • link_multiple_datasets
        • reduce_matched_dataframe
    • powerplantmatching.collection Module
  • Core Modules

References

  • Contributing
  • History of Changes
powerplantmatching
  • Data Processing Modules
  • link_multiple_datasets
  • Edit on GitHub

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 Next

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

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds