590028f40e74f82c3d00f0bc48b4cf415c97bfce,pudl/transform/ferc1.py,,fuel,#Any#Any#,428

Before Change



    // Take the messy free-form fuel & fuel_unit fields, and do our best to
    // map them to some canonical categories... this is necessarily imperfect:
    fuel_ferc1_df.fuel = pudl.helpers.cleanstrings(fuel_ferc1_df.fuel,
                                                   pc.ferc1_fuel_strings,
                                                   unmapped="")

    fuel_ferc1_df.fuel_unit = \
        pudl.helpers.cleanstrings(fuel_ferc1_df.fuel_unit,
                                  pc.ferc1_fuel_unit_strings,

After Change


    
    // grab table from dictionary of dfs, clean it up a bit
    fuel_ferc1_df = (
        _clean_cols(ferc1_raw_dfs["fuel_ferc1"], "f1_fuel").
        // 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"]).
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: fuel


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


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