5aaa63d7ecf85d341fec9b758d17f2bf4cde6042,src/pudl/transform/ferc1.py,FERCPlantClassifier,predict,#FERCPlantClassifier#Any#Any#,1292

Before Change


                // Stack the new list of record_ids on our output DataFrame:
                new_grp = pd.DataFrame(new_grp, columns=self._years)

                out_df = pd.concat([out_df, new_grp])

                // Save the seed record_id for use in indexing the output:
                out_idx = out_idx + [self._best_of.loc[idx, "record_id"]]

        out_df["seed_id"] = out_idx
        out_df = out_df.set_index("seed_id")
        out_df = out_df.fillna("")
        return out_df

    def score(self, X, y=None):  // noqa: N803
        Scores a collection of FERC plant categorizations.

After Change


                new_grp = tmp_best.loc[b_m, "record_id"]

                // Stack the new list of record_ids on our output DataFrame:
                out_df = out_df.append(
                    pd.DataFrame(
                        data=new_grp.values.reshape(1, len(self._years)),
                        index=pd.Index(
                            [tmp_best.loc[idx, "record_id"]],
                            name="seed_id"),
                        columns=self._years))
        return out_df

    def score(self, X, y=None):  // noqa: N803
        Scores a collection of FERC plant categorizations.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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


Project Name: pandas-dev/pandas
Commit Name: 5a7514ccb18a3a506d453dd048c665c33835ee56
Time: 2020-12-11
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/categorical/test_indexing.py
Class Name: TestGetIndexer
Method Name: test_get_indexer_non_unique


Project Name: tgsmith61591/pmdarima
Commit Name: 43592f2145754e5aadd9c42b39568b1e73e61d4a
Time: 2018-08-13
Author: tgsmith61591@gmail.com
File Name: pyramid/arima/tests/test_arima.py
Class Name:
Method Name: test_oob_for_issue_29


Project Name: pandas-dev/pandas
Commit Name: 66c3c6f4f8b0d73f40e5859c581a25322a935e4e
Time: 2020-11-26
Author: jbrockmendel@gmail.com
File Name: pandas/tests/reshape/concat/test_series.py
Class Name: TestSeriesConcat
Method Name: test_concat_series_axis1_same_names_ignore_index