title: How can I get the values with pandas idxmax function?
body: <p>when we apply idxmax() function to a pandas DataFrame, it return the index and columns of the table. Is there a pandas method to print out the values too?</p>
  <p>for example:</p>
  <pre><code>np.random.seed(seed=42)
  df = pd.DataFrame(data=np.random.randint(0, 10, (10,10)),
             columns=[&quot;Test{}&quot;.format(x) for x in range(1, 10 + 1)],
              index=[&quot;Student{}&quot;.format(x) for x in range(1, 10 + 1)])
  
  df.idxmax(axis =1)
  </code></pre>
  <p>it returns something like this:</p>
  <pre><code>Student1      Test6
  Student2      Test2
  Student3      Test3
  Student4      Test1
  Student5      Test3
  Student6     Test10
  Student7      Test4
  Student8      Test6
  Student9      Test2
  Student10     Test4
  </code></pre>
  <p>can I print values too for these indexes using pandas?</p>