title: For each dataframe row, get both the top-n values and the column-indices where they occur
body: <p>I have 1000x1000 matrix (of floating point numbers) as dataframe. Columns and rows are 0-1000. For each row, I want top-10 highest values and their index information. This turns out to be harder than I thought at first: </p>
  
  <pre><code>for row, index in df.iterrows():
      temp_row = row.copy()
      sort_row = temp_row.sort()
      # somehow I want indices as well
  </code></pre>
  
  <p>It is also okay to find top-10 indices, if I can get the values later by some other method or direct indexing.</p>