-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Removed Need for OHLC As First Element if Used in .agg #21769
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
# let higher level handle | ||
if _level: | ||
return results | ||
return list(compat.itervalues(results))[0] |
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.
There was no test coverage for this line and I can't feasibly think how this would be useful, hence the deletion
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.
lgtm. pls add a whatsnew note in 0.23.3.
pandas/tests/groupby/test_groupby.py
Outdated
|
||
|
||
def test_groupby_agg_ohlc_non_first(): | ||
df = pd.DataFrame([[1], [1]], columns=['foo'], |
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 add the issue number as a comment
lgtm. merge on green. |
CircleCI failure was a resource warning unrelated to PR |
git diff upstream/master -u -- "*.py" | flake8 --diff