We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
import pandas as pd p1 = {'name': 'willy', 'age': 10} p2 = {'name': 'willy', 'age': 11} p3 = {'name': 'zoe', 'age': 10} df = pd.DataFrame([p1, p2, p3]) df = df[['name','name','age']] df.groupby('name')
gives the following error:
TypeError: 'DataFrame' object is not callable
Instead, it should say "Cannot groupby a column which exists more than once"
The text was updated successfully, but these errors were encountered:
that does seem unhelpful!
care to do a pull-request to fix (prob just catch the TypeError in core/groupby.pythen if its a duplicate raise maybe a ValueError) ?
TypeError
core/groupby.py
ValueError
Sorry, something went wrong.
came up on SO (a couple of times) http://stackoverflow.com/q/25624022/1240268 http://stackoverflow.com/q/21172271/1240268
closed by #8210
Successfully merging a pull request may close this issue.
The following code:
gives the following error:
Instead, it should say "Cannot groupby a column which exists more than once"
The text was updated successfully, but these errors were encountered: