-
Notifications
You must be signed in to change notification settings - Fork 112
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
Minor updates to duplicate removal #570
Conversation
Signed-off-by: Sarah Yurick <[email protected]>
if not duplicates_to_remove: | ||
return None | ||
warnings.warn("No fuzzy duplicates to remove, returning original dataset") | ||
return dataset |
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.
The main thing I wanted to change with this PR is to return the original dataset when there are no duplicates, instead of returning None.
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.
I also prefer removing the Dataset, but I think @ayushdg might have some thoughts
#326 (comment)
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.
I think this comment is a bit different than the change I am making here. This does not return an empty dataset, it returns the original dataset (AKA a dataset with no duplicates removed).
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.
So it sounds like identify
will still retain the behavior of returning None but remove
might default to returning the original dataset.
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.
Yes that is correct.
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.
LGTM!
Signed-off-by: Sarah Yurick <[email protected]>
Fixes a few nits from #509.