Showing posts with label Pandas. Show all posts
Showing posts with label Pandas. Show all posts

Saturday, June 16, 2018

World Population Trend Analysis using Python Pandas and Seaborn Charts

Download population data from data.gov

populationbycountry19802010millions.csv

Contents


Ø  Read data
Ø  Cleanup data
Ø  World Population as of 2010 – Bar plot

Ø  Population Trend Analysis.
o   Point Plot
o   Box Plot
o   Bar Plot

Ø  Population Growth Rate and Percentage.
o   Growth Rate - Bar Plot
o   Growth Percent - Bar Plot

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()

Python Pandas - Read CSV file from URL Example

Here is an example on how to read CSV file from URL.
Census data used as source.

Use Case : Read Population data for state of California from "censusdata.ire.org" URL and display the data.

Syntax : 


pandas.read_csv(URL)