Reveal is a function which visually displays the relation between economic growth (gdpPercapita) and life expectancy(lifeExp) of specific continents and country groups
Use pandas and matplotlib
import pandas as pd
import matplotlib.pyplot as plt
plt.plot # Line Plot
plt.boxplot # box plot
plt.subplots # Sub Plot
Reveal is still under construction. More features will be presented in the near feature.
(1)In Asia, we can observe that life expectancy expoentially increases with the growth of GDP.
(2)In Americas and Europe, life expectancy expoentially increeases with the growth of GDP anf then begin to linearly grow up.
(3)But in Africa, even GDP per capita is in the same level, there are big differences between life expectancies.
FG.2 Box plot
(1)Accoring to box plot, GDP per capita is extremely low and almost all people living in such poverty condition at Africa countries.
(2)Further observations might be displayed by looking more detail at the below three charts.
FG.3 Line plot for high income countries
(1)Life expectancy linearly increases with the growth of GDP.
FG.4 Line plot for middle income countries
(1)Life expectancy expoentially increases with the growth of GDP.
FG.5 Line plot for low income countries
(1)life expectancy does not relevant when GDP grows, which implies there are more essential factor effect human's lives in these areas.
Note that the kit is still under construction. Pull requests are welcome. For major changes, please contact me via the mail [email protected].