-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
Feature/two column operator #291
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broadly happy with this. Bit confused by the comment about DFMTransformer so would like clarification there before approving.
tubular/numeric.py
Outdated
|
||
self.column1_name = columns[0] | ||
self.column2_name = columns[1] | ||
# Set above call to super as DFMTransformer accepts columns, but this transformer only ever needs one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Set below call'? I'm not quite sure what you mean here, this transformer needs two columns?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully this comment makes it clearer!
@@ -419,7 +420,7 @@ def transform(self, X: pd.DataFrame) -> pd.DataFrame: | |||
msg = f"{self.classname()}: input columns in X must contain only numeric values" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N: noticed an error on line 414:
'# call BaseTransformer.transform
X = super(DataFrameMethodTransformer, self).transform(X)'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Refactored TwoColumnOperator to align with new test design.
Linked issue here