Suppose you have a field table with "educational attendance (yes/no)" and "age group" fields, and you wanted to show what percentage of each age group get eduction. Then you can call get_stat_data with percent_grouping=['age group'] to indicate that entries should be summed across age groups when the denominator for percentages is calculated.
In addition, specify slices=['yes'] to pluck out just the yes rows for educational attendance.
This allows instances like the following:
Suppose you have a field table with "educational attendance (yes/no)" and "age group" fields, and you wanted to show what percentage of each age group get eduction. Then you can call
get_stat_data
withpercent_grouping=['age group']
to indicate that entries should be summed across age groups when the denominator for percentages is calculated.In addition, specify
slices=['yes']
to pluck out just theyes
rows foreducational attendance
.