Comment:
This is not really intended as an Answer, because your purpose is unclear.
Maybe the comparison below will help you focus on your answer to
the question in @whuber's Comment.
Suppose the city has population 100,000, with 26% Yes's; that's $X = 2600$ Yes's.
Suppose neighborhood A has population 5000 with 15% Yes's; that's $Y = 750$ Yes's.
It would make sense to compare neighborhood A with the rest of the city, which has population 95,000 and $26,000-750 = 25,250$ Yes's.
That can be done with a 'test of two proportions'. Minitab output follows, where Sample 1 is from neighborhood A (15% Yes's) and Sample 2 is for the rest of the city (26.58% Yes's).
Test and CI for Two Proportions
Sample X N Sample p
1 750 5000 0.150000
2 25250 95000 0.265789
Difference = p (1) - p (2)
Estimate for difference: -0.115789
95% CI for difference: (-0.126078, -0.105501)
Test for difference = 0 (vs ≠ 0):
Z = -22.06 P-Value = 0.000
It is usually bad practice to compare part of a population with the population as a whole: that way some individuals are double-counted. That is why I compared neighborhood A with the rest of the city.
With numbers as large as these, even some 'fairly small' differences in percentages
will turn out to be significant (as happened in this example). That is, the null hypothesis that the two percentages are equal, will be rejected at the 5% level (P-value less than 5%).
You might also want to compare two different neighborhoods using such a test.
Not all comparisons will be significant: If neighborhood B has population 10,000 with 16% Yes's, that's not
significantly different from neighborhood A.
Test and CI for Two Proportions
Sample X N Sample p
1 750 5000 0.150000 # Nbd A
2 1600 10000 0.160000 # Nbd B
Difference = p (1) - p (2)
Estimate for difference: -0.01
95% CI for difference: (-0.0222306, 0.00223055)
Test for difference = 0 (vs ≠ 0):
Z = -1.60 P-Value = 0.109
Another idea: Maybe you want to make a list of neighborhoods and their observed percentages of Yes answers, along with a confidence interval showing what the true percentages might be.
For neighborhood A, a 95% confidence interval would be
$$ .15 \pm 1.96\sqrt{\frac{(.15)(1-.15)}{5000}},$$
That amounts to a percentage of $15 \pm 0.1.$
For neighborhood B, its a percentage of $16 \pm 0.07.$