fix(data-info): drop NaN years before converting to int
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 47s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m12s
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
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 47s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m12s
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
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -827,10 +827,10 @@ async def get_data_info(request: Request):
|
||||
"data_source": "PostgreSQL",
|
||||
}
|
||||
|
||||
years = [int(y) for y in sorted(df["year"].unique())]
|
||||
years = [int(y) for y in sorted(df["year"].dropna().unique())]
|
||||
schools_per_year = {
|
||||
str(int(k)): int(v)
|
||||
for k, v in df.groupby("year")["urn"].nunique().to_dict().items()
|
||||
for k, v in df.dropna(subset=["year"]).groupby("year")["urn"].nunique().to_dict().items()
|
||||
}
|
||||
la_counts = {
|
||||
str(k): int(v)
|
||||
|
||||
Reference in New Issue
Block a user