title: Pandas - fill missing lat long cordinates by interpolation
body: <p>With dataframe like below</p>
  
  <pre><code>Time    Lat    Long
  19:24:52.135    35.61067    139.630228
  19:24:52.183    NaN NaN
  19:24:52.281    NaN NaN
  19:24:52.378    NaN NaN
  19:24:52.466    35.610692   139.630428
  </code></pre>
  
  <p>Need to fill in the <code>NaN</code> values for <code>Lat</code> and <code>Long</code> fields such that each row with NaN values for Lat / Long takes value such that:</p>
  
  <ol>
  <li>they fall on a straight line between the next (say x2,y2) and</li>
  <li>the previous non NaN lat/long (say x1,y1) points and are spaced equally between them.</li>
  </ol>
  
  <p>In the above case, since there are three rows with NaN for Lat/Long, they need to take 3 equally spaced points between the non-NaN rows</p>
  
  <p>Is there a way to achieve this with pandas or should it be done outside?</p>
  
  <p><strong>Update:</strong> </p>
  
  <p>Tried <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.interpolate.html" rel="nofollow noreferrer">df.interpolate()</a> as suggested in comments - that works!! </p>