rairo commited on
Commit
019cfcf
·
verified ·
1 Parent(s): ed4f6d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,9 +79,9 @@ def create_dashboard(data):
79
 
80
  with col2:
81
  # Event Types Distribution
82
- event_counts = data['events']['Event'].value_counts().reset_index()
83
- event_counts.columns = ['Event', 'Count'] # Rename columns explicitly
84
- fig = px.pie(event_counts, names='Event', values='Count',
85
  title='Event Type Distribution')
86
  st.plotly_chart(fig, use_container_width=True)
87
 
 
79
 
80
  with col2:
81
  # Event Types Distribution
82
+ event_counts = data['events']['Order Value $'].sum().reset_index()
83
+ event_counts.columns = ['Event', 'Order Value $'] # Rename columns explicitly
84
+ fig = px.pie(event_counts, names='Event', values='Order Value',
85
  title='Event Type Distribution')
86
  st.plotly_chart(fig, use_container_width=True)
87