File size: 760 Bytes
798602c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | import pandas as pd
class AppState:
"""
Global application state.
"""
def __init__(self):
# Raw and filtered data
self.df: pd.DataFrame | None = None
self.filtered_df: pd.DataFrame | None = None
# Authoritative column classification
self.numeric_cols: list[str] = []
self.categorical_cols: list[str] = []
# Active filters
self.active_filters: dict[str, list] = {}
# Table and figure to export
self.export_table = None
self.export_figure = None
# Inference cache
self.mean_ci: tuple[float, float] | None = None
self.sigma_ci: tuple[float, float] | None = None
self.selected_column = None
|