title: Python - Trying to use pandas to skip n rows until I reach a specific record
body: <p>Basically my problem is that I'm trying to create a code that will use Pandas to skip x amount of rows until it reaches a row containing records named <code>departmentName</code> and <code>departmentID</code>. This has been troubling for me because nearly all the questions I've seen have asked about how to skip a specified number of rows but with this issue, there is no specified amount of rows that will be skipped, it could be any amount. So I need a formula that will automatically adapt to this issue. Any ideas?</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th style="text-align: center;">Unamed_1</th>
  <th style="text-align: center;">Unamed_2</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style="text-align: center;"></td>
  <td style="text-align: center;"></td>
  </tr>
  <tr>
  <td style="text-align: center;">Credits</td>
  <td style="text-align: center;"></td>
  </tr>
  <tr>
  <td style="text-align: center;">1</td>
  <td style="text-align: center;">Math</td>
  </tr>
  <tr>
  <td style="text-align: center;">2</td>
  <td style="text-align: center;">Computer Science</td>
  </tr>
  <tr>
  <td style="text-align: center;">3</td>
  <td style="text-align: center;">History</td>
  </tr>
  <tr>
  <td style="text-align: center;">4</td>
  <td style="text-align: center;">Deep Learning</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>This what I have done so far:</p>
  <pre><code>for index_1, row_1 in df_cmd.iterrows():
      if row_1.notnull().all():
  </code></pre>
  <p>I want to get the name of the row</p>