Spaces:
Runtime error
Runtime error
Update pages/video_insights.py
Browse files- pages/video_insights.py +1 -7
pages/video_insights.py
CHANGED
|
@@ -12,10 +12,4 @@ st.title("🎥 Video Consumption Insights")
|
|
| 12 |
st.subheader("Video Category Distribution")
|
| 13 |
category_counts = df['Video Category'].value_counts()
|
| 14 |
fig_category = px.sunburst(df, path=['Video Category'], title="Video Categories")
|
| 15 |
-
st.plotly_chart(fig_category, use_container_width=True)
|
| 16 |
-
|
| 17 |
-
# Engagement by Category
|
| 18 |
-
st.subheader("Engagement by Category")
|
| 19 |
-
engagement_by_category = df.groupby('Video Category')['Engagement'].mean().reset_index()
|
| 20 |
-
fig_engagement = px.box(df, x='Video Category', y='Engagement', title="Engagement by Category")
|
| 21 |
-
st.plotly_chart(fig_engagement, use_container_width=True)
|
|
|
|
| 12 |
st.subheader("Video Category Distribution")
|
| 13 |
category_counts = df['Video Category'].value_counts()
|
| 14 |
fig_category = px.sunburst(df, path=['Video Category'], title="Video Categories")
|
| 15 |
+
st.plotly_chart(fig_category, use_container_width=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|