d9187309769bd34e34294003cef5290e512c6fbc,src/pudl/transform/eia861.py,,_harvest_associations,#Any#Any#,847

Before Change


                    f"Column {col} not found in dataframe for association harvesting."
                    "All columns must be present in all dataframes."
                )
    return pd.concat([df[cols] for df in dfs]).dropna().drop_duplicates()


def normalize_balancing_authority(tfr_dfs):

After Change


    assn = pd.DataFrame()
    for df in dfs:
        if set(df.columns).issuperset(set(cols)):
            assn = assn.append(df[cols])
    assn = assn.dropna().drop_duplicates()
    if assn.empty:
        raise ValueError(
            "These dataframes contain no associations for the columns: "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: catalyst-cooperative/pudl
Commit Name: d9187309769bd34e34294003cef5290e512c6fbc
Time: 2020-07-31
Author: zane.selvans@catalyst.coop
File Name: src/pudl/transform/eia861.py
Class Name:
Method Name: _harvest_associations


Project Name: kwgoodman/numerox
Commit Name: 35888e106789800f5dad17a1332fd3888b0b575f
Time: 2018-01-01
Author: kwgoodman@gmail.com
File Name: numerox/report.py
Class Name: Report
Method Name: append_prediction


Project Name: catalyst-cooperative/pudl
Commit Name: 5aaa63d7ecf85d341fec9b758d17f2bf4cde6042
Time: 2020-03-11
Author: zane.selvans@catalyst.coop
File Name: src/pudl/transform/ferc1.py
Class Name: FERCPlantClassifier
Method Name: predict