Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdj authored Sep 2, 2024
1 parent b9d84a2 commit 5bc08ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@
# Convert timestamp to datetime
df['timestamp'] = pd.to_datetime(df['timestamp'])


# Display Data
st.header("Energie Meetdata")
st.write(df)

st.markdown("**Energie data is niet real-time**", unsafe_allow_html=True)
# Plot usage over time
st.header("Energieverbruik in de tijd")
fig_usage = px.line(df, x="timestamp", y="usage", title="Energieverbruik (kWh)", labels={"timestamp": "Tijd", "usage": "Verbruik (kWh)"})
Expand Down

0 comments on commit 5bc08ba

Please sign in to comment.