Spaces:
Sleeping
Sleeping
Pragya Jatav
commited on
Commit
·
6d76301
1
Parent(s):
3116a4f
aesthetic changes 1
Browse files- pages/2_Scenario_Planner.py +2 -1
- summary_df.pkl +1 -1
pages/2_Scenario_Planner.py
CHANGED
@@ -1841,6 +1841,7 @@ if auth_status == True:
|
|
1841 |
summary_df_sorted['new_efficiency']=(summary_df_sorted['New_sales']/summary_df_sorted['New_sales'].sum())/(summary_df_sorted['Optimized_spend']/summary_df_sorted['Optimized_spend'].sum())
|
1842 |
|
1843 |
a = (summary_df_sorted[summary_df_sorted['Channel_name']== col]).reset_index()['new_efficiency'][0]
|
|
|
1844 |
# st.write(a)
|
1845 |
|
1846 |
with bin_placeholder:
|
@@ -1859,7 +1860,7 @@ if auth_status == True:
|
|
1859 |
text-align: center;
|
1860 |
color: {'black'};
|
1861 |
">
|
1862 |
-
<p style="margin: 0; font-size: 20px;">Efficiency: {round(a,2)}</p>
|
1863 |
<!--<p style="margin: 0; font-size: 20px;">Marginal ROI: {round(marginal_roi_current,1)}</p>-->
|
1864 |
</div>
|
1865 |
""",
|
|
|
1841 |
summary_df_sorted['new_efficiency']=(summary_df_sorted['New_sales']/summary_df_sorted['New_sales'].sum())/(summary_df_sorted['Optimized_spend']/summary_df_sorted['Optimized_spend'].sum())
|
1842 |
|
1843 |
a = (summary_df_sorted[summary_df_sorted['Channel_name']== col]).reset_index()['new_efficiency'][0]
|
1844 |
+
b = (summary_df_sorted[summary_df_sorted['Channel_name']== col]).reset_index()['old_efficiency'][0]
|
1845 |
# st.write(a)
|
1846 |
|
1847 |
with bin_placeholder:
|
|
|
1860 |
text-align: center;
|
1861 |
color: {'black'};
|
1862 |
">
|
1863 |
+
<p style="margin: 0; font-size: 20px;">Simulated Efficiency: {round(a,2)} </br> Actual Efficiency: {round(b,2)} </p>
|
1864 |
<!--<p style="margin: 0; font-size: 20px;">Marginal ROI: {round(marginal_roi_current,1)}</p>-->
|
1865 |
</div>
|
1866 |
""",
|
summary_df.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1822
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dad0d11118c0472a05a46ab895793cc2cdb21bea157bdc8a39e31d7d42ffebfa
|
3 |
size 1822
|