-> Overview This project analyses and visualises population age demographics. It uses synthetic data (inspired by 2022 statistics) to explore how a population is distributed across different life stages and genders.
-> Key Features
- Data Generation: Creates
age_distribution.csvcontaining 5-year age intervals and gender-calculated metrics. - Comparative Visualisation: A grouped bar chart comparing Male vs. Female populations per age group.
- Demographic Segmentation: A color-coded histogram that segments the population into:
- Youth (0'9620 years)
- Working Age (21'9664 years)
- Seniors (65+ years)
- Statistical Annotations: Highlights the median age and the specific population count for each functional group.
-> Requirements
- Python 3.x
- Pandas, NumPy, Matplotlib
-> Usage Run the script to generate the dataset and the analysis dashboard:
python task01_bar_chart.py