This project is part of the freeCodeCamp Data Analysis with Python certification. The goal is to analyze medical examination data and visualize relationships between cardiovascular disease, body measurements, blood markers, and lifestyle habits using Python data science libraries.
- Calculates Body Mass Index (BMI) and identifies overweight patients.
- Normalizes cholesterol and glucose values into binary categories.
- Creates a categorical plot to compare health indicators for patients with and without cardiovascular disease.
- Cleans the dataset by removing invalid and extreme values.
- Generates a correlation heatmap to identify relationships between medical variables.
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
The dataset contains information collected during medical examinations, including:
- Age
- Height
- Weight
- Blood Pressure
- Cholesterol Level
- Glucose Level
- Smoking Status
- Alcohol Consumption
- Physical Activity
- Cardiovascular Disease Status
Displays counts of:
- Cholesterol
- Glucose
- Smoking
- Alcohol Consumption
- Physical Activity
- Overweight Status
The data is grouped by cardiovascular disease status (cardio).
Shows correlations between all medical features after cleaning the dataset and removing outliers.
├── medical_data_visualizer.py
├── medical_examination.csv
├── main.py
├── test_module.py
├── catplot.png
├── heatmap.png
└── README.md
- Clone the repository:
git clone <your-repository-url>- Navigate to the project directory:
cd medical-data-visualizer- Install required dependencies:
pip install pandas numpy matplotlib seabornRun the project:
python main.pyThe program will generate:
catplot.pngheatmap.png
Through this project, I learned:
- Data cleaning and preprocessing
- BMI calculation and feature engineering
- Data transformation using Pandas
- Creating categorical visualizations with Seaborn
- Correlation analysis and heatmap visualization
- Working with real-world medical datasets
This project was completed as part of the freeCodeCamp Data Analysis with Python Certification.
Bhavana R