Code Academy Data Science Path Portfolio Project Life Expectancy and GDP of Data Visualization
This project investigates the relationship between the economic output of a country (GDP) and the life expectancy of its citizens. Using data from the World Health Organization and the World Bank, we will analyze, prepare, and plot data to identify trends and correlations.
- Import and preprocess the dataset.
- Perform exploratory data analysis (EDA) and visualize data using Seaborn and Matplotlib.
- Analyze the relationship between GDP and life expectancy.
- Summarize findings and share insights in a blog post.
Ensure that you have a solid understanding of the following topic:
- Python Fundamentals
- Data Acquisition
- Data Visualization
- Hypothesis Testing
- Summarizing Quantitative Data
- Data Wrangling and Tidying
- Data Manipulation with Pandas
The repository includes the following files:
- life_expectancy_gdp.ipynb: Jupyter Notebook with analysis description, code, and visualizations.
- all_data.csv: CSV file containing GDP and life expectancy data used in the analysis.
-
Clone the repository:
git clone git@github.com:shahira-sadat/Portfolio-Project-Life-Expectancy-and-GDP.git
-
Navigate to the project directory:
cd Portfolio-Project-GDP-and-Life-Expectancy
-
Open the Jupyter Notebook:
jupyter notebook
-
Start exploring the OKCupid_Data_Analysis.ipynb notebook:
life_expectancy_gdp.ipynb
The script does the following:
-
Loading Data:
- Imports the CSV file into a DataFrame and inspects the data.
-
Exploratory Data Analysis (EDA):
- Cleans and preprocesses the data.
- Visualizes the distribution of GDP and life expectancy.
- Calculates and visualizes average GDP and life expectancy by country.
-
Analysis:
- Analyzes trends over time and the correlation between GDP and life expectancy.
-
Summary and Insights:
- Summarizes findings and provides insights on the relationship between GDP and life expectancy.
Feel free to modify and extend the script according to your needs.
👤 Shahira Sadat
- GitHub: Shahira Sadat
- Twitter: Shahira Sadat
- Linkedin: Shahira Sadat
- Gmail: shahira.sadat1@gmail.com
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!