5f6f1a37c2f84acfb838470faabb85ae36b4dbc2,tests/col_generation/test_binarize.py,,test_binarize_no_drop_first,#,28
Before Change
def test_binarize_no_drop_first():
Basic binning test.
df = _one_categ_df()
res_df = Binarize("Born", drop_first=False).apply(df)
assert "Born" not in res_df.columns
assert "Born_UK" in res_df.columns
assert res_df["Born_UK"][1] == 0
assert res_df["Born_UK"][2] == 1
After Change
def test_binarize_no_drop_first():
Basic binning test.
df = _one_categ_df()
binarize = Binarize("Born", drop_first=False)
res_df = binarize(df, verbose=True)
assert "Born" not in res_df.columns
assert "Born_UK" in res_df.columns
assert res_df["Born_UK"][1] == 0
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: shaypal5/pdpipe
Commit Name: 5f6f1a37c2f84acfb838470faabb85ae36b4dbc2
Time: 2018-02-04
Author: shay@zencity.io
File Name: tests/col_generation/test_binarize.py
Class Name:
Method Name: test_binarize_no_drop_first
Project Name: shaypal5/pdpipe
Commit Name: 5f6f1a37c2f84acfb838470faabb85ae36b4dbc2
Time: 2018-02-04
Author: shay@zencity.io
File Name: tests/col_generation/test_binarize.py
Class Name:
Method Name: test_binarize_one
Project Name: shaypal5/pdpipe
Commit Name: 5f6f1a37c2f84acfb838470faabb85ae36b4dbc2
Time: 2018-02-04
Author: shay@zencity.io
File Name: tests/col_generation/test_binarize.py
Class Name:
Method Name: test_binarize_one_with_exclude
Project Name: shaypal5/pdpipe
Commit Name: 5f6f1a37c2f84acfb838470faabb85ae36b4dbc2
Time: 2018-02-04
Author: shay@zencity.io
File Name: tests/col_generation/test_binarize.py
Class Name:
Method Name: test_binarize_with_nan
Project Name: shaypal5/pdpipe
Commit Name: 5f6f1a37c2f84acfb838470faabb85ae36b4dbc2
Time: 2018-02-04
Author: shay@zencity.io
File Name: tests/col_generation/test_binarize.py
Class Name:
Method Name: test_binarize_with_dummy_na
Project Name: shaypal5/pdpipe
Commit Name: 5f6f1a37c2f84acfb838470faabb85ae36b4dbc2
Time: 2018-02-04
Author: shay@zencity.io
File Name: tests/col_generation/test_binarize.py
Class Name:
Method Name: test_binarize_one_no_drop