title: Filter on diagonal geo coordinates
body: <p>I am trying to filter my file on geo coordinates to keep only coordinates located in Manhattan using Python and Folium.
  I've tried setting my own limits:</p>
  <pre><code>top_left = [40.806470, -73.973205]
  bottom_left = [40.709729, -74.035690]
  bottom_right = [40.696715, -73.992431]
  top_right = [40.781518, -73.934066]
  
  low_lat = bottom_right[0]
  high_lat = top_left[0]       
  low_lon = top_right[1]
  high_lon = bottom_left[1]
  
  df_bad = df.loc[
      (df[&quot;Point_latitude&quot;] &lt; high_lat) &amp; 
      (df[&quot;Point_latitude&quot;] &gt; low_lat) &amp;
      (df[&quot;Point_longitude&quot;] &gt; high_lon) &amp;
      (df[&quot;Point_longitude&quot;] &lt; low_lon)
  ]
  </code></pre>
  <p>My problem with this method is that it includes parts of NYC I don't want to include. It is a straight box like this:</p>
  <p><a href="https://i.stack.imgur.com/Cg2EC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cg2EC.jpg" alt="Before" /></a></p>
  <p>I would like to filter my map like this:
  <a href="https://i.stack.imgur.com/fztoq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fztoq.jpg" alt="enter image description here" /></a></p>
  <p>Is there a way to do that? Or maybe a new library that would allow me to do that?</p>
  <p>Thank you</p>