-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
test case for transform with fillna #27905 #27974
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
test case for transform with fillna #27905 #27974
Conversation
Hello @ukantesaria! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-08-18 00:05:50 UTC |
|
||
|
||
@pytest.mark.parametrize( | ||
"inputDF, expectedDF", |
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.
inputDF -> input_df
expectedDF -> expected_df
are there other dtypes we should be testing?
thanks for creating the PR, i think it would be nice also to test |
can you merge master and update to comments |
can you merge master and update |
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.
can you parameterize this over all of the functions in the OP
) | ||
def test_groupby_transform_fillna(inputDF, expectedDF): | ||
# GH 27905 - Test fillna in groupby.transform | ||
input1 = inputDF.groupby("A").transform(lambda x: x.fillna(x.mean())) |
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.
use the forms
result =
tm.assert_frame_equal(result, expected)
can you merge master and update to the comments |
closing as stale |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff