File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ import streamlit as st
2+ import pandas as pd
3+ import pickle
4+ import os
5+ import plotly .express as px
6+
7+ st .set_page_config (page_title = "Aura Dashboard" , layout = "wide" )
8+ st .title ("🌌 Aura Dashboard (.ser-powered)" )
9+
10+ ser_folder = "./data/serialized"
11+ ser_files = [f for f in os .listdir (ser_folder ) if f .endswith (".ser" )]
12+
13+ for ser_file in ser_files :
14+ path = os .path .join (ser_folder , ser_file )
15+ with open (path , "rb" ) as f :
16+ df = pickle .load (f )
17+ st .subheader (ser_file .replace (".ser" ,"" ))
18+ st .dataframe (df )
19+
20+ # Plot numeric columns
21+ numeric_cols = df .select_dtypes (include = 'number' ).columns
22+ for col in numeric_cols :
23+ fig = px .bar (df , x = df .columns [0 ], y = col , title = f"{ ser_file } - { col } " )
24+ st .plotly_chart (fig , use_container_width = True )
You can’t perform that action at this time.
0 commit comments