590028f40e74f82c3d00f0bc48b4cf415c97bfce,pudl/transform/eia860.py,,generators,#Any#Any#,51

Before Change



    // Ensure plant IDs are integers.
    gens_df["plant_id_eia"] = gens_df["plant_id_eia"].astype(int)
    gens_df["generator_id"] = gens_df["generator_id"].astype(str)
    gens_df["utility_id_eia"] = gens_df["utility_id_eia"].astype(int)

    gens_df = pudl.helpers.convert_to_date(gens_df)

    eia860_transformed_dfs["generators_eia860"] = gens_df

After Change


            to_replace=["Y", "N"], value=[True, False])

    gens_df = (
        gens_df.
        pipe(pudl.helpers.month_year_to_date).
        assign(fuel_type_code_pudl=lambda x: pudl.helpers.cleanstrings_series(
            x["energy_source_code_1"], pc.fuel_type_eia860_simple_map)).
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/eia860.py
Class Name:
Method Name: generators


Project Name: sony/nnabla
Commit Name: 0940b083d3cdd0db46c867523e9a58b196e6e9d5
Time: 2019-01-09
Author: takuma.seno@gmail.com
File Name: python/test/function/test_assign.py
Class Name:
Method Name: test_assign_forward_backward


Project Name: catalyst-cooperative/pudl
Commit Name: aa784931b89877024c871459abc6c55f36b907df
Time: 2019-10-21
Author: karldw@users.noreply.github.com
File Name: src/pudl/convert/epacems_to_parquet.py
Class Name:
Method Name: epacems_to_parquet