Spaces:
Sleeping
Sleeping
Update modules/visuals.py
Browse files- modules/visuals.py +3 -2
modules/visuals.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
|
2 |
-
|
3 |
-
import plotly.express as px
|
4 |
import pandas as pd
|
5 |
|
6 |
def display_dashboard(df: pd.DataFrame):
|
@@ -11,6 +10,8 @@ def display_dashboard(df: pd.DataFrame):
|
|
11 |
col3.metric("⚡ Power Issues", df[df["Power_Sufficient__c"] == "No"].shape[0])
|
12 |
col4.metric("📷 Offline Cameras", df[df["Camera_Status__c"] == "Offline"].shape[0])
|
13 |
|
|
|
|
|
14 |
|
15 |
|
16 |
def display_charts(df: pd.DataFrame):
|
|
|
1 |
|
2 |
+
|
|
|
3 |
import pandas as pd
|
4 |
|
5 |
def display_dashboard(df: pd.DataFrame):
|
|
|
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 |
|
16 |
|
17 |
def display_charts(df: pd.DataFrame):
|