Similar to this question, rather I want to group polygons based on sum of values. To be more specific, I need to group cities, within a state, and that group must add up to "x" amount of people, in order to create something that looks like this.
I must also inform that I a complete beginner in python(any coding to be honest).