-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Adding more documentation for upsampling with replacement and error m… #29444
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
Conversation
…essage in case replacement is set to False
Hello @CooperData! 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-11-07 23:38:05 UTC |
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.
go ahead and add a whatsnew note, bugfix in 1.0 in the numeric section; you can say that a better error message will be raised when frac > 1 and replace=True
lgtm. ping on green. |
@jreback - CI failed but I am not sure what it's causing the issue. I was able to run the tests while I was at the sprint. But dont know if I did anything that is creating the issue. |
looks like just some extra white space fix and push up if u can |
I added a dot at the end of the raised error as per other errors I saw. I also changed the test msg checked to match the error raised so it's 2 lines as well. I was not able to understand what exactly the error was. |
thanks @CooperData |
@jreback, I am going through the messages on the build for the last push, and it seems it's failing because the function inside that is supposed to give the error message is failing. In other words, the desired behavior is to make the test fail but compare the error message, not to make the test fail itself. |
The failures seem associated with something else that I did not change: errors |
thanks @CooperData ! |
…essage in case replacement is set to False
Dataframe.sample()
isn't validatingfrac
#27451black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff