-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: added tests for sparse and date range quantiles #35236
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
TST: added tests for sparse and date range quantiles #35236
Conversation
I'm new to Travis CI and based on the error I am seeing in the error log I am not understanding what is causing the issue: Anyone have any insight into what would cause this? |
df = pd.DataFrame({0: s, 1: s1}) | ||
result = df.quantile() | ||
# GH#24600 | ||
result = df.quantile(0.5) |
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.
hmm this should work with df.quantile()
yes?
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 we test this elsewhere so prob ok here
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 df.quantile()
works the same. I can change this.
ser = pd.Series(dti) | ||
df = pd.DataFrame(ser) | ||
|
||
result = df.quantile(0.5) |
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.
expected is NO values?
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.
It has no values unless it is run with numeric_only set to false. So it would be result = df.quantile(numeric_only=False)
instead of result = df.quantile()
.
It probably makes more sense to change it and set numeric_only to false correct?
thanks @sanders41 |
* TST: added tests for sparse and date range quantiles * TST: updating quantile arguments
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Added tests for sparse and date range quantiles