title: fill na according to certain conditionals of other columns
body: <p>I have the following table:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>State</th>
  <th>Municipality</th>
  <th>Date of Project</th>
  <th>Poverty (year)</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Aguascalientes</td>
  <td>Aguascalientes</td>
  <td>2003</td>
  <td></td>
  </tr>
  <tr>
  <td>Jalisco</td>
  <td>Chapala</td>
  <td>2004</td>
  <td></td>
  </tr>
  <tr>
  <td>Jalisco</td>
  <td>Chapala</td>
  <td>2010</td>
  <td></td>
  </tr>
  <tr>
  <td>Jalisco</td>
  <td>Chapala</td>
  <td>2015</td>
  <td></td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>In it I have to fill the column <code>poverty</code> according to the columns before it.
  The following table is the one which I am going to use in order to fill the information of the first table:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>State</th>
  <th>Municipality</th>
  <th>2010</th>
  <th>2015</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Aguascalientes</td>
  <td>Aguascalientes</td>
  <td>65.8</td>
  <td>78.5</td>
  </tr>
  <tr>
  <td>Jalisco</td>
  <td>Chapala</td>
  <td>45 .3</td>
  <td>43.1</td>
  </tr>
  <tr>
  <td>Durango</td>
  <td>Durango</td>
  <td>12.4</td>
  <td>13.4</td>
  </tr>
  <tr>
  <td>Guanajuato</td>
  <td>Leon</td>
  <td>15.2</td>
  <td>13.2</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>What I need to do is with the information that have in <code>2010</code> and <code>2015</code> I have to fill the <code>poverty</code> column according to the year of <code>Date of Project</code>, <code>State</code> and <code>Municipality</code>. Additionally, if the year (of <code>Date of Project</code>) is between 2000:2012 I have to fill it with the <code>2010</code> column. On the other hand, if the year is between 2013:2020, the <code>2015</code> column should be the one I need to fill with.</p>