Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,6 +80,16 @@ elif page == "EDA":
|
|
| 80 |
plot_histogram(df, "enmo", "#a29bfe")
|
| 81 |
st.markdown("- ENMO reflects movement intensity")
|
| 82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
# ---- Pairplot ----
|
| 84 |
st.subheader(" Feature Relationships")
|
| 85 |
with st.spinner("Creating pairplot..."):
|
|
|
|
| 80 |
plot_histogram(df, "enmo", "#a29bfe")
|
| 81 |
st.markdown("- ENMO reflects movement intensity")
|
| 82 |
|
| 83 |
+
# fig, ax = plt.subplots(figsize=(12, 4))
|
| 84 |
+
# ax.plot(df["timestamp"], df["anglez"], color="#1abc9c", label="Anglez")
|
| 85 |
+
# ax.plot(df["timestamp"], df["enmo"], color="#c56cf0", label="ENMO")
|
| 86 |
+
# ax.fill_between(df["timestamp"], 0, 1, where=df["sleep"]==1,
|
| 87 |
+
# color="#ffeaa7", alpha=0.3, transform=ax.get_xaxis_transform())
|
| 88 |
+
# ax.set_title("Sensor Data over Time with Sleep Periods")
|
| 89 |
+
# ax.legend()
|
| 90 |
+
# st.pyplot(fig)
|
| 91 |
+
|
| 92 |
+
|
| 93 |
# ---- Pairplot ----
|
| 94 |
st.subheader(" Feature Relationships")
|
| 95 |
with st.spinner("Creating pairplot..."):
|