Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,8 @@ if uploaded_file and run:
|
|
| 58 |
|
| 59 |
# --- TIMELINE ---
|
| 60 |
st.markdown("### 📈 Activity Timeline")
|
| 61 |
-
|
|
|
|
| 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)
|