adb2f55d8629b588bba17a5232946b2245c157fc,tests/test_preprocessing.py,,encoded_data,#Any#,32

Before Change


                col == cat, dtype=np.float64)
    expected_cat = pd.DataFrame(expected_cat)

    expected_data = pd.concat((data.drop(dat_cat, axis=1), expected_cat), axis=1)
    return expected_data

After Change


                s = pd.Series(col == cat, dtype=np.float64)
                expected.append((name, s))
        else:
            expected.append((nam, col))

    expected_data = pd.DataFrame.from_items(expected)
    return expected_data
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: sebp/scikit-survival
Commit Name: adb2f55d8629b588bba17a5232946b2245c157fc
Time: 2017-07-23
Author: sebp@k-d-w.org
File Name: tests/test_preprocessing.py
Class Name:
Method Name: encoded_data


Project Name: CamDavidsonPilon/lifelines
Commit Name: aeaeb8c961e99d60b60a65e519e4b0c61747942c
Time: 2020-08-04
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/__init__.py
Class Name: RegressionFitter
Method Name: _compute_central_values_of_raw_training_data


Project Name: analysiscenter/batchflow
Commit Name: fa0c013fc201cebf5c9aceb0098cf7cc9094a34f
Time: 2020-04-02
Author: dimonovez@gmail.com
File Name: batchflow/utils.py
Class Name:
Method Name: print_results