13486bea951688cffe91312ae11caee7a8d1f265,tests/test_functions.py,,test_get_features_target_multi_columns,#Any#,205

Before Change




def test_get_features_target_multi_columns(dataframe):
    dataframe = dataframe.clean_names()
    X, y = dataframe.get_features_targets(target_columns=["a", "bell_chart"])
    assert X.shape == (9, 3)
    assert y.shape == (9, 2)

After Change


@pytest.mark.hyp
@given(dfstrategy())
def test_get_features_target_multi_columns(df):
    X, y = df.clean_names().get_features_targets(
        target_columns=["a", "bell_chart"]
    )
    assert X.shape[1] == 3
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: ericmjl/pyjanitor
Commit Name: 13486bea951688cffe91312ae11caee7a8d1f265
Time: 2019-01-26
Author: ericmajinglong@gmail.com
File Name: tests/test_functions.py
Class Name:
Method Name: test_get_features_target_multi_columns


Project Name: ericmjl/pyjanitor
Commit Name: 00a2806d35c72a036be50416243faf1438882892
Time: 2018-07-26
Author: ericmajinglong@gmail.com
File Name: tests/test_functions.py
Class Name:
Method Name: test_convert_excel_date


Project Name: ericmjl/pyjanitor
Commit Name: 13486bea951688cffe91312ae11caee7a8d1f265
Time: 2019-01-26
Author: ericmajinglong@gmail.com
File Name: tests/test_functions.py
Class Name:
Method Name: test_get_features_targets_multi_features


Project Name: ericmjl/pyjanitor
Commit Name: 00a2806d35c72a036be50416243faf1438882892
Time: 2018-07-26
Author: ericmajinglong@gmail.com
File Name: tests/test_functions.py
Class Name:
Method Name: test_rename_column


Project Name: ericmjl/pyjanitor
Commit Name: 13486bea951688cffe91312ae11caee7a8d1f265
Time: 2019-01-26
Author: ericmajinglong@gmail.com
File Name: tests/test_functions.py
Class Name:
Method Name: test_get_features_targets