figures.py : remplacement de df.columns par schema.names() depuis src.db (#71)
This commit is contained in:
+2
-2
@@ -12,11 +12,11 @@ import polars as pl
|
|||||||
from dash import dash_table, dcc, html
|
from dash import dash_table, dcc, html
|
||||||
from dash_extensions.javascript import Namespace
|
from dash_extensions.javascript import Namespace
|
||||||
|
|
||||||
|
from src.db import schema
|
||||||
from src.utils import (
|
from src.utils import (
|
||||||
add_links,
|
add_links,
|
||||||
data_schema,
|
data_schema,
|
||||||
departements_geojson,
|
departements_geojson,
|
||||||
df,
|
|
||||||
format_number,
|
format_number,
|
||||||
setup_table_columns,
|
setup_table_columns,
|
||||||
)
|
)
|
||||||
@@ -774,7 +774,7 @@ def make_column_picker(page: str):
|
|||||||
"name": data_schema[col]["title"],
|
"name": data_schema[col]["title"],
|
||||||
"description": data_schema[col]["description"],
|
"description": data_schema[col]["description"],
|
||||||
}
|
}
|
||||||
for col in df.columns
|
for col in schema.names()
|
||||||
]
|
]
|
||||||
for column in table_columns:
|
for column in table_columns:
|
||||||
new_column = {
|
new_column = {
|
||||||
|
|||||||
Reference in New Issue
Block a user