showing schools with no KS2 results
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 44s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m9s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s

This commit is contained in:
2026-03-30 18:14:43 +01:00
parent 6e5249aa1e
commit f48faa1803
3 changed files with 11 additions and 2 deletions

View File

@@ -199,7 +199,7 @@ _MAIN_QUERY = text("""
p.sen_ehcp_pct
FROM marts.dim_school s
JOIN marts.dim_location l ON s.urn = l.urn
JOIN marts.fact_performance p ON s.urn = p.urn
LEFT JOIN marts.fact_performance p ON s.urn = p.urn
ORDER BY s.school_name, p.year
""")
@@ -244,7 +244,7 @@ def load_school_data() -> pd.DataFrame:
if not _df_cache.empty:
print(f"Total records loaded: {len(_df_cache)}")
print(f"Unique schools: {_df_cache['urn'].nunique()}")
print(f"Years: {sorted(_df_cache['year'].unique())}")
print(f"Years: {sorted(_df_cache['year'].dropna().unique())}")
else:
print("No data found in marts (EES data may not have been loaded yet)")
return _df_cache