How can I remove certain cities from the result?
(trying to delete the data from Anchorage and Honolulu, pointed by the two arrows in the above picture)
Also, is there a way to change the threshold for the CityData[{Large,“USA”}]? The option “Large” is set to 100,000.
{Large, country} syntax used by CityData has a fixed threashold of 100,000 people. Also, notice that
CountryData["USA", "LargestCities"]
is fixed at the top 100 cities by population.
To use your own population threshold, apply a filter to the list of fully quilified city names. Then use that new list for pulling up all the other properties. This particular approch is not the only way and it is not paritcularly fancy, but it does the job in stages, so we can see what is going on.