get indices second max in whole dataframe pandas code example Example: how to take second largest value in pandas df['High'].nlargest(2)