After writing two indicator, we had a glance of how we could factorize the code to count every man and women for each indicator.
A good format will be to have two dictionaries, by gender. Where the keys will be the id of the indicator.
The values will be another dictionary. The keys will be the label (for exemple, type of contracts), and the keys will be the number of women for this specific kind of contract.
After writing two indicator, we had a glance of how we could factorize the code to count every man and women for each indicator.
A good format will be to have two dictionaries, by gender. Where the keys will be the id of the indicator. The values will be another dictionary. The keys will be the label (for exemple, type of contracts), and the keys will be the number of women for this specific kind of contract.
For example
Should we sort the value ? I don't know, maybe it's better to sort them before displaying it.