Skip to content

egrid_facilities.py

jgrooviest edited this page Aug 5, 2019 · 3 revisions

Description: The main purpose of this script is to modify the eGRID facility list to include the percent of generation from the plant's primary fuel type.

  • This script, when called, simplifies the eGRID dataframe to only contain the percent generation from the plant's primary fuel type. It creates an intermediate dataframe to select and store the primary percentage while removing the percentages from the imported eGRID dataframe. it returns this dataframe after merging the primary percentage to it.

Functions:

  • add_percent_generation_from_primary_fuel_category_col(x) - Gets the fuel percentage of the plant's primary fuel category and assigns it to a new column
  • list_facilities_w_percent_generation_from_primary_fuel_category_greater_than_min() - Returns a list of plant IDs for the plants that operate on primarily (>90%) just one fuel type

Data: eGRID data that is sourced from the stewi package.

Dependencies:

  • pandas
  • stewi
  • os.path --> join
  • electricitylci
Clone this wiki locally