eb9f8cce1d00417520f3282807ae99c40801346d,tests/test_features/test_pcoords.py,TestParallelCoordinates,test_pandas_integration_fast,#TestParallelCoordinates#,188
Before Change
Test on a real dataset with pandas DataFrame and Series in fast mode
df = self.load_pandas("occupancy")
target = "occupancy"
features = [
"temperature", "relative humidity", "light", "C02", "humidity"
]
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
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: 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_rfecv.py
Class Name: TestRFECV
Method Name: test_pandas_integration