Closed
Description
-
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
df.groupby('teamId').idxmax()
tmp.groupby('teamId').idxmax()
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 working
But tmp.groupby('teamId').idxmax()
is not working and showing 'TypeError: argmax() takes 1 positional argument but 2 were given'