Prasanna1622 commited on
Commit
12e1cba
·
verified ·
1 Parent(s): 871b595

Update modules/visuals.py

Browse files
Files changed (1) hide show
  1. modules/visuals.py +5 -3
modules/visuals.py CHANGED
@@ -1,8 +1,6 @@
1
 
2
 
3
- import streamlit as st
4
- import plotly.express as px
5
- import pandas as pd
6
 
7
  def display_dashboard(df: pd.DataFrame):
8
  st.subheader("📊 System Summary")
@@ -12,6 +10,10 @@ def display_dashboard(df: pd.DataFrame):
12
  col3.metric("⚡ Power Issues", df[df["Power_Sufficient__c"] == "No"].shape[0])
13
  col4.metric("📷 Offline Cameras", df[df["Camera_Status__c"] == "Offline"].shape[0])
14
 
 
 
 
 
15
  def display_charts(df: pd.DataFrame):
16
  st.subheader("⚙ Energy Generation")
17
  fig_energy = px.bar(
 
1
 
2
 
3
+
 
 
4
 
5
  def display_dashboard(df: pd.DataFrame):
6
  st.subheader("📊 System Summary")
 
10
  col3.metric("⚡ Power Issues", df[df["Power_Sufficient__c"] == "No"].shape[0])
11
  col4.metric("📷 Offline Cameras", df[df["Camera_Status__c"] == "Offline"].shape[0])
12
 
13
+ import streamlit as st
14
+ import plotly.express as px
15
+ import pandas as pd
16
+
17
  def display_charts(df: pd.DataFrame):
18
  st.subheader("⚙ Energy Generation")
19
  fig_energy = px.bar(