e1082d619ca1c644c6e3d9fefeef781935949707,pudl/helpers.py,,month_year_to_date,#Any#,278

Before Change


        month_year_date.append((month_col, year_col, date_col))

    for month_col, year_col, date_col in month_year_date:
        df[year_col] = fix_int_na(df[year_col])
        df[month_col] = fix_int_na(df[month_col])

        date_mask = (df[year_col] != "") & (df[month_col] != "")
        years = df.loc[date_mask, year_col]
        months = df.loc[date_mask, month_col]

After Change


        month_year_date.append((month_col, year_col, date_col))

    for month_col, year_col, date_col in month_year_date:
        df = fix_int_na(df, columns=[year_col, month_col])

        date_mask = (df[year_col] != "") & (df[month_col] != "")
        years = df.loc[date_mask, year_col]
        months = df.loc[date_mask, month_col]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: catalyst-cooperative/pudl
Commit Name: e1082d619ca1c644c6e3d9fefeef781935949707
Time: 2018-12-22
Author: zane.selvans@catalyst.coop
File Name: pudl/helpers.py
Class Name:
Method Name: month_year_to_date


Project Name: catalyst-cooperative/pudl
Commit Name: 8ab31ccce5629d57ad6ca671a90c39d54fdda568
Time: 2019-01-02
Author: cgosnell@catalyst.coop
File Name: pudl/transform/eia923.py
Class Name:
Method Name: fuel_reciepts_costs


Project Name: catalyst-cooperative/pudl
Commit Name: e1082d619ca1c644c6e3d9fefeef781935949707
Time: 2018-12-22
Author: zane.selvans@catalyst.coop
File Name: pudl/transform/eia923.py
Class Name:
Method Name: fuel_reciepts_costs


Project Name: catalyst-cooperative/pudl
Commit Name: 8ab31ccce5629d57ad6ca671a90c39d54fdda568
Time: 2019-01-02
Author: cgosnell@catalyst.coop
File Name: pudl/helpers.py
Class Name:
Method Name: month_year_to_date


Project Name: catalyst-cooperative/pudl
Commit Name: e1082d619ca1c644c6e3d9fefeef781935949707
Time: 2018-12-22
Author: zane.selvans@catalyst.coop
File Name: pudl/helpers.py
Class Name:
Method Name: month_year_to_date