Spaces:
Runtime error

Ikeitany commited on
Commit
8b72e6d
·
verified ·
1 Parent(s): b498c2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -58,7 +58,8 @@ if uploaded_file and run:
58
 
59
  # --- TIMELINE ---
60
  st.markdown("### 📈 Activity Timeline")
61
- timeline = df.resample('15min', on='dt').size().reset_index(name='count')
 
62
 
63
  fig_time = px.area(timeline, x='dt', y='count', title="Post Volume (15m Intervals)", color_discrete_sequence=['#1d3557'])
64
  st.plotly_chart(fig_time, use_container_width=True)
 
58
 
59
  # --- TIMELINE ---
60
  st.markdown("### 📈 Activity Timeline")
61
+ df = df.sort_values('dt')
62
+ df['dt'] = df['dt'].dt.tz_localize(None)
63
 
64
  fig_time = px.area(timeline, x='dt', y='count', title="Post Volume (15m Intervals)", color_discrete_sequence=['#1d3557'])
65
  st.plotly_chart(fig_time, use_container_width=True)