title: How put latitude and longitude in one column quickly?
body: <p>I need to calculate distances between two data points ((lat1,lon1) and (lat2,lon2)).</p>
  <p><a href="https://i.stack.imgur.com/BkSit.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BkSit.png" alt="enter image description here" /></a></p>
  <p>I found a way how to do it <a href="https://stackoverflow.com/questions/19412462/getting-distance-between-two-points-based-on-latitude-longitude/43211266#43211266">here</a>:</p>
  <pre><code>import geopy.distance
  
  coords_1 = (52.2296756, 21.0122287)
  coords_2 = (52.406374, 16.9251681)
  
  print geopy.distance.vincenty(coords_1, coords_2).km
  </code></pre>
  <p>As a result I need to convert latitude and longitude to one column
  I found a way <a href="https://stackoverflow.com/questions/61170839/how-to-convert-two-coordinate-columns-to-a-column-of-shapely-points">here</a>, however, it takes to much time.</p>
  <pre><code>df[&quot;point1&quot;] = df[[&quot;lon1&quot;, &quot;lat1&quot;]].apply(Point, axis=1)
  df[&quot;point2&quot;] = df[[&quot;lon2&quot;, &quot;lat2&quot;]].apply(Point, axis=1)
  
  
  </code></pre>
  <p>Is there a faster solution?</p>