-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
test needed: groupby(as_index=False, sort=False).aggregate formerly (?) gave unexpected results with a list-like function #18473
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
Comments
The returning of a list is problematic. as this is ok
If you want to have a look and see if you can pin-point where things are going wrong would be helpful. Note that this is pretty non-idiomatic, aggregating to a list. |
groupby
/aggregate
gives unexpected result when sort=False
passed to groupby
Is this py2 only, or was it fixed in the interim?
|
This was Python 3.5/3.6. May (inadvertently or not) be working right now but perhaps a test case should be added before closing ... |
Indeed, we'll want to add a test. |
Code Sample, a copy-pastable example if possible
Problem description
The aggregate obviously hasn't aggregated the correct thing, but rather seems to have assumed some incorrect sorting of the rows.
Expected Output
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]INSTALLED VERSIONS
commit: None
python: 3.6.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-87-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_CA.UTF-8
LOCALE: en_CA.UTF-8
pandas: 0.21.0
pytest: 3.2.2
pip: 9.0.1
setuptools: 28.8.0
Cython: 0.26.1
numpy: 1.13.3
...
The text was updated successfully, but these errors were encountered: