We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intercept column sometimes contains nan:
nan
def test_truncated_index(self): data = pd.DataFrame(data={'x': ['A', 'B', 'C', 'A', 'B'], 'y': [1, 0, 1, 0, 1]}) data = data.iloc[2:5] data2 = pd.DataFrame(data={'x': ['C', 'A', 'B'], 'y': [1, 0, 1]}) for encoder_name in encoders.__all__: with self.subTest(encoder_name=encoder_name): enc = getattr(encoders, encoder_name)() result = enc.fit_transform(data.x, data.y) enc2 = getattr(encoders, encoder_name)() result2 = enc2.fit_transform(data2.x, data2.y) self.assertTrue((result.values == result2.values).all())
The text was updated successfully, but these errors were encountered:
Solved by @JohnnyC08 . Added test into test_encoders.
test_encoders
Sorry, something went wrong.
No branches or pull requests
Intercept column sometimes contains
nan
:The text was updated successfully, but these errors were encountered: