SyntaxFix
Write A Post
Hire A Developer
Questions
You could try argmax like this:
argmax
dataframe['name'].value_counts().argmax() Out[13]: 'alex'
The value_counts will return a count object of pandas.core.series.Series and argmax could be used to achieve the key of max values.
value_counts
pandas.core.series.Series