Ashar086 commited on
Commit
5b0b76c
·
verified ·
1 Parent(s): 8898617

Update pages/video_insights.py

Browse files
Files changed (1) hide show
  1. 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)