twoHelixestwoHelixes Start free

Datasets / Canada · K–12 facilities · school locations

Canada · K–12 facilities directory coverage

Counts describe source directory records, not school quality or complete worldwide coverage. Smaller groups are retained as Other when needed.

Question How many school location records are in each region?
Canada · K–12 facilities directory records02k4k6kONQCABBCSKMBNSNBNLPENTNUYTGroup
Canada · K–12 facilities · school locations — 13 rows charted from 16,115, drawn as a bar
How it decided
Finding the data1595 ms

Canada · K–12 facilities · school locations: 16,115 rows, 17 columns. The directory identifier and region classify source records; missing coordinates are still counted.

Shaping the data8 ms

16,115 rows in, 13 out across 2 columns. Counts describe source directory records, not school quality or complete worldwide coverage. Smaller groups are retained as Other when needed.

Choosing the chart6 ms

bar. A count comparison describes coverage without inventing achievement scores or attendance boundaries.

Applying defaults1 ms

Palette, spacing, axis titles and legend placement applied. 0 issues found.

The transformation

This is the code, not a description of it — the chart above was drawn from what it returns, and the notebook download runs the same lines against the same file.

result = df.groupby('region', dropna=False).size().reset_index(name='schools').rename(columns={'region':'group'})
result = result.sort_values('schools', ascending=False).reset_index(drop=True)
if len(result) > 15:
    result = pd.concat([result.head(15), pd.DataFrame([{'group':'Other','schools':int(result.iloc[15:]['schools'].sum())}])], ignore_index=True)

What it charted

13 rows out of 16,115, 2 columns. First 8 shown.

groupschools
ON6515
QC2747
AB2257
BC1923
SK866
MB681
NS373
NB296

More from Canada · K–12 facilities · school locations