I have a Pandas DataFrame with a mix of screen names, tweets, fav\'s etc. I want find the max value of \'favcount\' (which i have already done) and also return the screen n
Use argmax() idxmax() to get the index of the max value. Then you can use loc
argmax()
idxmax()
loc
df.loc[df['favcount'].idxmax(), 'sn']
Edit: argmax() is now deprecated, switching for idxmax()