590028f40e74f82c3d00f0bc48b4cf415c97bfce,pudl/transform/ferc1.py,,plants_hydro,#Any#Any#,687

Before Change


                                  unmapped="")

    // Converting kWh to MWh
    ferc1_hydro_df["net_generation_mwh"] = ferc1_hydro_df["net_generation"] / 1000.0
    ferc1_hydro_df.drop("net_generation", axis=1, inplace=True)
    // Converting cost per kW installed to cost per MW installed:
    ferc1_hydro_df["cost_per_mw"] = ferc1_hydro_df["cost_per_kw"] * 1000.0
    ferc1_hydro_df.drop("cost_per_kw", axis=1, inplace=True)
    // Converting kWh to MWh
    ferc1_hydro_df["expns_per_mwh"] = ferc1_hydro_df["expns_kwh"] * 1000.0
    ferc1_hydro_df.drop("expns_kwh", axis=1, inplace=True)

    ferc1_hydro_df["yr_const"] = pd.to_numeric(
        ferc1_hydro_df["yr_const"],
        errors="coerce")

After Change


    
    // grab table from dictionary of dfs
    ferc1_hydro_df = (
        _clean_cols(ferc1_raw_dfs["plants_hydro_ferc1"], "f1_hydro").
        // Standardize plant_name capitalization and remove leading/trailing
        // white space -- necesary b/c plant_name is part of many foreign keys.
        pipe(strip_lower, ["plant_name"]).
        pipe(cleanstrings, ["plant_const"], [pc.ferc1_const_type_strings],
             unmapped="").
        assign(
            // Converting kWh to MWh
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: catalyst-cooperative/pudl
Commit Name: 590028f40e74f82c3d00f0bc48b4cf415c97bfce
Time: 2019-06-13
Author: zane.selvans@catalyst.coop
File Name: pudl/transform/ferc1.py
Class Name:
Method Name: plants_hydro


Project Name: catalyst-cooperative/pudl
Commit Name: 590028f40e74f82c3d00f0bc48b4cf415c97bfce
Time: 2019-06-13
Author: zane.selvans@catalyst.coop
File Name: pudl/transform/ferc1.py
Class Name:
Method Name: fuel


Project Name: catalyst-cooperative/pudl
Commit Name: 590028f40e74f82c3d00f0bc48b4cf415c97bfce
Time: 2019-06-13
Author: zane.selvans@catalyst.coop
File Name: pudl/transform/ferc1.py
Class Name:
Method Name: plants_hydro


Project Name: catalyst-cooperative/pudl
Commit Name: bf7f740f3d6e2d419567109e2fdb0e264e3ad913
Time: 2019-11-16
Author: zane.selvans@catalyst.coop
File Name: src/pudl/transform/ferc1.py
Class Name:
Method Name: _plants_steam_clean