61ae1fa7411f25c181fbbec12c79a0e2d8d184fd,pudl/eia923.py,,get_eia923_plant_info,#Any#Any#,204

Before Change


                  "eia_sector", "naics_code",
                  "reporting_frequency", "year"]]
        if 2011 in recent_years:
            pf = pf.merge(pf1[["plant_id", "nameplate_capacity_mw"]],
                          on="plant_id", how="left")

    gf = get_eia923_page("generation_fuel", eia923_xlsx, years=years)
    gf = gf[["plant_id", "plant_name",
             "operator_name", "operator_id", "plant_state",

After Change


                plant_info_compiled.columns.str.replace("_x$", "")
    plant_info_compiled = plant_info_compiled.drop_duplicates("plant_id")
    plant_info_compiled = plant_info_compiled.drop(["year"], axis=1)
    if 2011 in recent_years:
        plant_info_compiled = plant_info_compiled.merge(pf_mw, on="plant_id",
                                                        how="left")
    return(plant_info_compiled)


def yearly_to_monthly_eia923(df, md):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: catalyst-cooperative/pudl
Commit Name: 61ae1fa7411f25c181fbbec12c79a0e2d8d184fd
Time: 2017-04-27
Author: cgosnell@catalyst.coop
File Name: pudl/eia923.py
Class Name:
Method Name: get_eia923_plant_info


Project Name: deepgram/kur
Commit Name: 3a9cc1cd7988b086e127486e5d4fb22b1f92a01e
Time: 2017-03-15
Author: ajsyp@syptech.net
File Name: kur/utils/parallelism.py
Class Name:
Method Name: make_parallel


Project Name: Featuretools/featuretools
Commit Name: 81718c3bf6b741bfc3fc0fbd03e6d1db9861b561
Time: 2018-08-27
Author: kmax12@gmail.com
File Name: featuretools/computational_backends/pandas_backend.py
Class Name: PandasBackend
Method Name: _calculate_agg_features


Project Name: Featuretools/featuretools
Commit Name: 846204634a089f1b29c4284ffbda11bbfa9a8ecb
Time: 2018-08-24
Author: kmax12@gmail.com
File Name: featuretools/computational_backends/pandas_backend.py
Class Name: PandasBackend
Method Name: _calculate_agg_features


Project Name: pyannote/pyannote-audio
Commit Name: 78197159b897391afd44862381694134bb8d049f
Time: 2017-01-11
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/models.py
Class Name: StackedLSTM
Method Name: __call__