We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41eb0cd commit 5cb4e40Copy full SHA for 5cb4e40
category_encoders/tests/test_one_hot.py
@@ -23,8 +23,8 @@ def test_one_hot(self):
23
enc = encoders.OneHotEncoder(verbose=1, return_df=False)
24
enc.fit(X)
25
self.assertEqual(enc.transform(X_t).shape[1],
26
- enc.transform(X_t[X_t['extra'] != 'A']).shape[1],
27
- 'We have to get the same count of columns')
+ enc.transform(X).shape[1],
+ 'We have to get the same count of columns despite the presence of a new value')
28
29
enc = encoders.OneHotEncoder(verbose=1, return_df=True, impute_missing=True)
30
0 commit comments