title: Python pandas, how to find the min after max in columns
body: <p>I'd like to find the min value/index in the rows that are after the max value location. For example:</p>
  <pre><code>df = pd.DataFrame({&quot;c1&quot;: [22, 55, 48, 30, 35], &quot;c2&quot;: [6, 2, 33, 22, 17]})
  df
  
      c1  c2
  0   22  6
  1   55  2
  2   48  33
  3   30  22
  4   35  17
  </code></pre>
  <p>For c1, I need the min after max value 55, for c2, I need the min after max value 33, so the desired result should be</p>
  <pre><code>c1 30
  c2 17
  </code></pre>
  <p>Obviously I could get idxmax first and pass to an apply function. Is there a simpler/efficient way and avoiding the apply function? I may have thousands of columns.
  Appreciate the help....</p>