# South Africa Subnational Demographic and Health Data Analysis
## Overview
This repository contains an analysis of subnational demographic and health data for South Africa. The dataset was obtained from the Humanitarian Data Exchange (HDX) and provides valuable insights into various demographic and health indicators at the subnational level within South Africa.
## Dataset Description
The dataset includes the following columns:
- `ISO3`: ISO 3166-1 alpha-3 country code.
- `Location`: Subnational location within South Africa.
- `DataId`: Unique identifier for the data.
- `Indicator`: Demographic and health indicators.
- `Value`: Numeric value for the indicator.
- `Precision`: Precision of the indicator value.
- `DHS_CountryCode`: Country code for South Africa.
- `CountryName`: Name of the country (South Africa).
- `SurveyYear`: Year of the survey.
- `SurveyId`: Unique identifier for the survey.
- ... (additional columns)
## Analysis and Visualizations
### 1. Distribution of Indicators by Location
In this analysis, we visualize the distribution of different indicators by location within South Africa using a bar plot. This helps us understand how various indicators vary across subnational regions.
### 2. Stacked Bar Plot of Indicators by Location
A stacked bar plot is created to show the distribution of indicators within each location. This visualization provides insights into the composition of indicators within each subnational region.
### 3. Average Values by Location and Indicator
We calculated and displayed the average values for each combination of location and indicator. This allows us to identify trends and variations in indicator values across different regions.
### 4. Identifying Highs and Lows
We identified locations with the highest and lowest average values for specific indicators. This information can be valuable for policymakers and researchers interested in understanding regional disparities.
## Getting Started
To replicate the ana …