Rank districts
rank_districtsUse for best/worst/highest/lowest questions over many districts — "worst 20 districts for child stunting in Uttar Pradesh". Check the indicator's polarity in the result before calling a tail "worst": for a higher-worse indicator the worst districts are order: "desc", for higher-better they are order: "asc". Districts the source never covered sort last in both directions and are never presented as an extreme.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many districts to return. Defaults to 20. | |
| order | No | desc = highest value first. Defaults to desc. | |
| scope | No | A state name to rank within. Omit to rank every district of India. | |
| indicator | Yes | One indicator id from find_indicator. |