title: Group by fields in pandas dataframe
body: <p>I have a dataframe with the following fields. For each Id, I have two records, that represent different latitude and longitudes. I'm trying to achieve a resultant dataframe that groups by current dataframe based on id and put its latitude and longitude into different fields.</p>
  
  <p>I tried with the group by function but I do not get the intended results. Any help would be greatly appreciated.</p>
  
  <pre><code>Id  StartTime   StopTime    Latitude    Longitude
  101 14:42:28    14:47:56    53.51       118.12
  101 22:10:01    22:12:49    33.32       333.11
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Id  StartLat    StartLong   DestLat DestLong
  101 53.51       118.12      33.32       333.11
  </code></pre>