-
Notifications
You must be signed in to change notification settings - Fork 2
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
Omission noise function #56
Conversation
if isinstance(data, pd.Series): | ||
not_empty_idx = data.index[(data != "") & (data.notna())] | ||
else: | ||
not_empty_idx = data.index |
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.
Why is this necessary? To handle row-level noise?
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. Allows for the same operation on a dataframe.
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.
Looks great
pass | ||
|
||
@pytest.fixture(scope="module") | ||
def dummy_data(): |
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.
Don't we already have a fixture called dummy_data
? Also, we're only using this fixture for the one test, so there's no need for it to have scope="module"
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 there is a dummy_dataset in test_column noise. We should also be able to use this for duplication noise function but I will remove it for now.
Omission noise function
Adds noise function which omits a set of rows in a form.
-adds omit rows noising function and related test suites
Testing
All tests pass successfully.