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
See SO question: http://stackoverflow.com/questions/19879790/indexing-dataframe-by-argmax-of-column-over-another-column
I was thinking something along the lines of:
interesting_rows = raw_data.groupby(["city"]).argmax(over='obt_dt')
which would pull out the row in each group that has the max value in the column referred to by the over keyword,
over
The text was updated successfully, but these errors were encountered:
is is just idxmax which is defined already, the over kw I am confused on. Maybe if you have a complete example it would be more clear.
idxmax
Sorry, something went wrong.
No branches or pull requests
See SO question: http://stackoverflow.com/questions/19879790/indexing-dataframe-by-argmax-of-column-over-another-column
I was thinking something along the lines of:
which would pull out the row in each group that has the max value in the column referred to by the
over
keyword,The text was updated successfully, but these errors were encountered: