Input: a line classes K, then a CSV district,cases,population.
Compute rate = cases / population × 10,000. Classify the rates with K equal-interval classes (breaks np.linspace(min, max, K + 1)) and K quantile classes (breaks np.quantile(rates, np.linspace(0, 1, K + 1))), assigning classes with np.digitize(rate, breaks[1:-1], right=True). For each method print the class boundaries (1 decimal) and the districts in each class (alphabetical, - if empty):
equal interval (rate): 1.8-6.2 | 6.2-10.6 | 10.6-15.0
class 1: Dongtou, Lucheng, Ouhai, Ruian, Yueqing; class 2: -; class 3: Longwan
Then most cases: Lucheng; highest rate per 10,000: Longwan and, if they differ, a map of raw counts would point to the wrong district.