create_population_pyramid
Generate a population pyramid chart visualizing age and sex distribution from census data, with configurable title and theme.
Instructions
Population pyramid: age × sex distribution. Males left, females right.
Essential for census data from RZS. Classic demographic visualization.
Returns: {filepath, title, age_groups}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts with age groups and male/female counts | |
| theme | No | Visual theme | dark |
| title | No | Chart title | |
| filename | No | Output filename | population_pyramid |
| age_column | Yes | Age group labels (e.g., '0-4', '5-9', '65+') | |
| male_column | Yes | Male population counts | |
| female_column | Yes | Female population counts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||