Showing posts with label where. Show all posts
Showing posts with label where. Show all posts

Monday, April 17, 2017

Python Pandas Dataframe - Where Condition Example

Here is an example on using Where condition on pandas dataframe.
Census data used as source.


Use Case : 


  • Read Population data for state of California from "censusdata.ire.org" URL.
  • Get Counties with population more than 1000000.



Syntax : 


DataFrame.where()