From 342f7b53a9eb5a957f24eb33b26d878e6ad0b8f1 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Thu, 16 Apr 2026 11:09:43 +0200 Subject: [PATCH] figures.py : remplacement de df.columns par schema.names() depuis src.db (#71) --- src/figures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/figures.py b/src/figures.py index 4cbe378..d0194a4 100644 --- a/src/figures.py +++ b/src/figures.py @@ -12,11 +12,11 @@ import polars as pl from dash import dash_table, dcc, html from dash_extensions.javascript import Namespace +from src.db import schema from src.utils import ( add_links, data_schema, departements_geojson, - df, format_number, setup_table_columns, ) @@ -774,7 +774,7 @@ def make_column_picker(page: str): "name": data_schema[col]["title"], "description": data_schema[col]["description"], } - for col in df.columns + for col in schema.names() ] for column in table_columns: new_column = {