File size: 508 Bytes
c0c612b
e307e2f
 
 
 
 
 
 
 
 
 
 
 
c0c612b
 
e307e2f
c0c612b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

import streamlit as st
import pandas as pd
import plotly.express as px

# Load dataset
df = pd.read_csv("Cleaned_Dataset.csv")

# Title
st.title("📈 Platform Usage Patterns")

# Daily Usage Trends
st.subheader("Daily Usage Trends")
df['Watch Hour'] = pd.to_datetime(df['Watch Time']).dt.hour
hourly_usage = df.groupby('Watch Hour').size().reset_index(name='Count')
fig_line = px.line(hourly_usage, x='Watch Hour', y='Count', title="Hourly Usage Trends")
st.plotly_chart(fig_line, use_container_width=True)