30703a7036f9bfd58ba23c2872887f1820ef928e,pudl/outputs.py,,frc_eia923_df,#Any#,200

Before Change



    // Contains the one-to-one mapping of EIA plants to their operators, but
    // we only have the 860 data integrated for 2011 forward right now.
    plants_eia860 = pd.read_sql(
        """SELECT * FROM plants_eia860""", pudl_engine)
    plants_eia860 = plants_eia860[["year", "plant_id", "operator_id"]]

    // For the PUDL Utility & Plant IDs, as well as utility & plant names:
    utils_eia = pd.read_sql("""SELECT * FROM utilities_eia""", pudl_engine)

After Change


    pt = models.PUDLBase.metadata.tables
    // Most of the fields we want come direclty from Fuel Receipts & Costs
    frc_tbl = pt["fuel_receipts_costs_eia923"]
    frc_select = sa.sql.select([frc_tbl, ])
    frc_df = pd.read_sql(frc_select, pudl_engine)

    // Need a year column to merge with EIA860 data which is annual.
    frc_df["year"] = pd.to_datetime(frc_df["report_date"]).dt.year
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: catalyst-cooperative/pudl
Commit Name: 30703a7036f9bfd58ba23c2872887f1820ef928e
Time: 2017-09-25
Author: zane.selvans@catalyst.coop
File Name: pudl/outputs.py
Class Name:
Method Name: frc_eia923_df


Project Name: catalyst-cooperative/pudl
Commit Name: b484bedcd2e4fab69ded7519779926b2ccb8b416
Time: 2017-07-05
Author: alanamwilson@gmail.com
File Name: pudl/analysis.py
Class Name:
Method Name: ferc1_expns_corr


Project Name: catalyst-cooperative/pudl
Commit Name: 432c4fa659fb2acd786a3b06a39ff0070f520ba3
Time: 2017-06-30
Author: zane.selvans@catalyst.coop
File Name: pudl/analysis.py
Class Name:
Method Name: ferc1_expns_corr