eb9f8cce1d00417520f3282807ae99c40801346d,tests/test_features/test_pcoords.py,TestParallelCoordinates,test_pandas_integration_fast,#TestParallelCoordinates#,188

Before Change



        X = df[features]
        y = pd.Series([
            "occupied" if yi == 1 else "unoccupied" for yi in df[target]
        ])

        assert isinstance(X, pd.DataFrame)
        assert isinstance(y, pd.Series)

After Change


        
        Test on a real dataset with pandas DataFrame and Series in fast mode
        
        data = load_occupancy(return_dataset=True)
        X, y = data.to_pandas()
        classes = [k for k, _ in sorted(data.meta["labels"].items(), key=lambda i: i[1])]

        assert isinstance(X, pd.DataFrame)
        assert isinstance(y, pd.Series)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: DistrictDataLabs/yellowbrick
Commit Name: eb9f8cce1d00417520f3282807ae99c40801346d
Time: 2019-05-14
Author: 8103276+zjpoh@users.noreply.github.com
File Name: tests/test_features/test_pcoords.py
Class Name: TestParallelCoordinates
Method Name: test_pandas_integration_fast


Project Name: DistrictDataLabs/yellowbrick
Commit Name: eb9f8cce1d00417520f3282807ae99c40801346d
Time: 2019-05-14
Author: 8103276+zjpoh@users.noreply.github.com
File Name: tests/test_features/test_pcoords.py
Class Name: TestParallelCoordinates
Method Name: test_pandas_integration_sampled


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_target/test_class_balance.py
Class Name: TestClassBalance
Method Name: test_pandas_occupancy_compare


Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_target/test_class_balance.py
Class Name: TestClassBalance
Method Name: test_pandas_occupancy_balance