Skip to content

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

Merged
merged 11 commits into from
Nov 8, 2019

Conversation

CooperData
Copy link
Contributor

@CooperData CooperData commented Nov 6, 2019

…essage in case replacement is set to False

…essage in case replacement is set to False
@pep8speaks
Copy link

pep8speaks commented Nov 6, 2019

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

Copy link
Contributor

@jreback jreback left a 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

@jreback jreback added Error Reporting Incorrect or improved errors from pandas Numeric Operations Arithmetic, Comparison, and Logical operations labels Nov 6, 2019
@jreback jreback added this to the 1.0 milestone Nov 6, 2019
@jreback
Copy link
Contributor

jreback commented Nov 6, 2019

lgtm. ping on green.

@CooperData
Copy link
Contributor Author

@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.

@jreback
Copy link
Contributor

jreback commented Nov 7, 2019

see https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=20307&view=logs&jobId=d6a36677-9147-59f9-684d-001fc5c44c5e

looks like just some extra white space

fix and push up if u can

@CooperData
Copy link
Contributor Author

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.

@jreback
Copy link
Contributor

jreback commented Nov 7, 2019

thanks @CooperData

@CooperData
Copy link
Contributor Author

@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.

@CooperData
Copy link
Contributor Author

CooperData commented Nov 8, 2019

The failures seem associated with something else that I did not change: errors

@jreback jreback merged commit c60e107 into pandas-dev:master Nov 8, 2019
@jreback
Copy link
Contributor

jreback commented Nov 8, 2019

thanks @CooperData !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dataframe.sample() isn't validating frac
3 participants