This commit is contained in:
2025-08-15 08:08:11 +02:00
parent 9601c5e44d
commit 7b652d6999
17 changed files with 28 additions and 60 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import pandas as pd
import streamlit as st
from core.utils import get_data_file_path
from core.utils.data_loader import OPTIMIZED_DTYPES
@st.cache_data
def load_dataset(file_path: str) -> pd.DataFrame:
try:
return pd.read_csv(file_path, dtype=OPTIMIZED_DTYPES)
@@ -25,7 +25,7 @@ class Dashboard:
# Load basic statistics
try:
data_path = get_data_file_path(self.config.data.output_files["featured"], self.config)
data_path = self.config.paths.get_data_path(self.config.data.output_files["featured"])
if data_path.exists():
df = load_dataset(str(data_path))