Em4e commited on
Commit
daed71f
·
verified ·
1 Parent(s): ca37ad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -180,14 +180,6 @@ if df is not None:
180
  with col6:
181
  st.metric(label="SEO ROI (Return on Investment) 💰", value=f"{metrics['seo_roi']:.2%}")
182
 
183
- st.write("---")
184
- st.header("Detailed Keyword Performance") # Kept as st.header for prominence
185
- st.dataframe(df_results[[
186
- 'query', 'impressions', 'position', 'current_ctr', 'target_ctr',
187
- 'current_clicks', 'projected_clicks', 'incremental_clicks',
188
- 'cpc', 'avoided_paid_spend', 'impact_category'
189
- ]].sort_values(by='incremental_clicks', ascending=False), use_container_width=True)
190
-
191
  st.write("---")
192
  st.header("Hypothetical Comparison: SEO vs. Additional Ad Spend")
193
  col_ad1, col_ad2 = st.columns(2)
@@ -200,4 +192,12 @@ if df is not None:
200
  if metrics['incremental_mrr'] > add_spend:
201
  st.success(f"SEO's incremental MRR is ${metrics['incremental_mrr'] - add_spend:,.2f} higher than the additional ad spend!")
202
  else:
203
- st.warning(f"Additional ad spend is ${add_spend - metrics['incremental_mrr']:,.2f} higher than SEO's incremental MRR.")
 
 
 
 
 
 
 
 
 
180
  with col6:
181
  st.metric(label="SEO ROI (Return on Investment) 💰", value=f"{metrics['seo_roi']:.2%}")
182
 
 
 
 
 
 
 
 
 
183
  st.write("---")
184
  st.header("Hypothetical Comparison: SEO vs. Additional Ad Spend")
185
  col_ad1, col_ad2 = st.columns(2)
 
192
  if metrics['incremental_mrr'] > add_spend:
193
  st.success(f"SEO's incremental MRR is ${metrics['incremental_mrr'] - add_spend:,.2f} higher than the additional ad spend!")
194
  else:
195
+ st.warning(f"Additional ad spend is ${add_spend - metrics['incremental_mrr']:,.2f} higher than SEO's incremental MRR.")
196
+
197
+ st.write("---")
198
+ st.header("Detailed Keyword Performance") # Kept as st.header for prominence
199
+ st.dataframe(df_results[[
200
+ 'query', 'impressions', 'position', 'current_ctr', 'target_ctr',
201
+ 'current_clicks', 'projected_clicks', 'incremental_clicks',
202
+ 'cpc', 'avoided_paid_spend', 'impact_category'
203
+ ]].sort_values(by='incremental_clicks', ascending=False), use_container_width=True)