title: Trying to cut rows out of DataFrame, not working via specific columns
body: <p>I'm trying to cut out some rows of my dataset if the <code>Area</code> or <code>Population</code> values are too high so that I can create a Scatter Graph based on the data. When I cut via <code>Population</code> it works fine but it doesn't with <code>Area</code>.</p>
  
  <pre><code>flagsCut = flags.loc[flags['Area'] &lt; 6000]
  flagsCut = flags.loc[flags['Population'] &lt; 250]
  print(flagsCut.shape)
  plt.scatter(flagsCut['Area'].tolist(), flagsCut['Population'].tolist(), c='blue', alpha=0.5)
  plt.xlabel('Area')
  plt.ylabel('Population')
  plt.show()
  </code></pre>
  
  <p>results in 
  <a href="https://i.stack.imgur.com/VK7d4.png" rel="nofollow noreferrer">scatter</a> (can't embed sorry)  </p>
  
  <p>As you can see, there are still 4 data points past 6000 on the x-axis but not any past 250 on the y-axis.</p>
  
  <p>Any ideas on why is this happening and how to fix it?</p>