title: How to return 3 columns above and below the specified cell in a pandas dataframe?
body: <p>This is my data frame.  If I search for Iowa, the code should return the country name (the USA in this case) and  3 states above it (Hawaii, California, Missouri)-Iowa- and 3 below it (colorado, Alaska, texas in this case). How to do this?</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th style="text-align: left;">Country</th>
  <th>States</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style="text-align: left;">India</td>
  <td>Banglore</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Pune</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Delhi</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Maharasthra</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Hyderabad</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Gujarat</td>
  </tr>
  <tr>
  <td style="text-align: left;">USA</td>
  <td>Arizona</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Hawaii</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>California</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Missouri</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Iowa</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Colorado</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Alaska</td>
  </tr>
  <tr>
  <td style="text-align: left;"></td>
  <td>Texas</td>
  </tr>
  </tbody>
  </table>
  </div>