-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Unclear ValueError on core.groupby #15082
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
Possibly related: |
this looks like a duplicate of #11759 ? |
merged that branch, testing again seems like the same issue occurs with a "ValueError 'SeriesGroupBy' object has no attribute '_aggregate_item_by_item'" as in the test that I made still passes. Any suggestions? Also, will do some cleanup on the test case, based on the reviews. Thanks. |
@jmunsch you could have simply updated that original PR. but now that its closed GH won't let you re-open. so you can open a new one. |
So after doing some more research I tried moving When trying:
I followed the linked issue 11579 more closely, and retried with:
But it returns an empty set, I must be using this incorrectly. |
@jmunsch you are doing some really odd things in your example and seem to have embedded dataframes within dataframes. please show the input data construction and what you are after. |
Code Sample
Problem description
The return message from the ValueError in _GroupBy._aggregate_item_by_item is vague.
The proposed change raises the error message for the user to see.
Expected Output
Output of
pd.show_versions()
pandas: 0.19.0+311.gb895968.dirty
nose: 1.3.7
pip: 9.0.1
setuptools: 32.3.1
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: