Spaces:
Runtime error
Runtime error
Update pages/platform_usage.py
Browse files- pages/platform_usage.py +0 -5
pages/platform_usage.py
CHANGED
|
@@ -9,11 +9,6 @@ df = pd.read_csv("Cleaned_Dataset.csv")
|
|
| 9 |
# Title
|
| 10 |
st.title("📈 Platform Usage Patterns")
|
| 11 |
|
| 12 |
-
# Time Spent vs Sessions
|
| 13 |
-
st.subheader("Time Spent vs Number of Sessions")
|
| 14 |
-
fig_scatter = px.scatter(df, x="Total Time Spent", y="Number of Sessions", color="Platform", title="Time Spent vs Sessions")
|
| 15 |
-
st.plotly_chart(fig_scatter, use_container_width=True)
|
| 16 |
-
|
| 17 |
# Daily Usage Trends
|
| 18 |
st.subheader("Daily Usage Trends")
|
| 19 |
df['Watch Hour'] = pd.to_datetime(df['Watch Time']).dt.hour
|
|
|
|
| 9 |
# Title
|
| 10 |
st.title("📈 Platform Usage Patterns")
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# Daily Usage Trends
|
| 13 |
st.subheader("Daily Usage Trends")
|
| 14 |
df['Watch Hour'] = pd.to_datetime(df['Watch Time']).dt.hour
|