BUG: 'groupby' method error #40346
Open
BUG: 'groupby' method error #40346
Labels
Comments
Can you add a reproducible example as mentioned when you opened the bug report, see link |
Thanks @Leejung8763 for the report This works on master, but indeed fails in 1.1.3, will do a bisect |
Fixed in #38195
Could do with an extra test for this though, pull requests welcome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
DataFrame df is consist of teamId(int64) and neutralMinionsKilled(int64) and 'tmp' is consist of teamId(Int64) and neutralMinionsKilled(Int64)
df.groupby('teamId').idxmax()
is workingBut
tmp.groupby('teamId').idxmax()
is not working and showing 'TypeError: argmax() takes 1 positional argument but 2 were given'Expected Output
Output of
pd.show_versions()
[paste the output of

pd.show_versions()
here leaving a blank line after the details tag]The text was updated successfully, but these errors were encountered: