Spaces:
Sleeping
Sleeping
Pragya Jatav
commited on
Commit
·
90a93af
1
Parent(s):
46d2500
test4
Browse files- pages/8_Scenario_Planner.py +12 -11
pages/8_Scenario_Planner.py
CHANGED
@@ -22,7 +22,7 @@ from yaml import SafeLoader
|
|
22 |
import re
|
23 |
import pandas as pd
|
24 |
import plotly.express as px
|
25 |
-
|
26 |
|
27 |
st.set_page_config(layout="wide")
|
28 |
load_local_css("styles.css")
|
@@ -702,12 +702,13 @@ def name_formating(channel_name):
|
|
702 |
def panel_fetch(file_selected):
|
703 |
raw_data_mmm_df = pd.read_excel(file_selected, sheet_name="RAW DATA MMM")
|
704 |
|
705 |
-
if "Panel" in raw_data_mmm_df.columns:
|
706 |
-
|
707 |
-
else:
|
708 |
-
|
709 |
-
|
710 |
-
|
|
|
711 |
return panel
|
712 |
|
713 |
|
@@ -1439,10 +1440,10 @@ if auth_status == True:
|
|
1439 |
unsafe_allow_html=True,
|
1440 |
)
|
1441 |
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
|
1447 |
summary_df = pd.DataFrame(st.session_state["acutual_predicted"])
|
1448 |
# st.dataframe(summary_df)
|
|
|
22 |
import re
|
23 |
import pandas as pd
|
24 |
import plotly.express as px
|
25 |
+
import response_curves_model_quality as rc
|
26 |
|
27 |
st.set_page_config(layout="wide")
|
28 |
load_local_css("styles.css")
|
|
|
702 |
def panel_fetch(file_selected):
|
703 |
raw_data_mmm_df = pd.read_excel(file_selected, sheet_name="RAW DATA MMM")
|
704 |
|
705 |
+
# if "Panel" in raw_data_mmm_df.columns:
|
706 |
+
# panel = list(set(raw_data_mmm_df["Panel"]))
|
707 |
+
# else:
|
708 |
+
# raw_data_mmm_df = None
|
709 |
+
# panel = None
|
710 |
+
# raw_data_mmm_df = None
|
711 |
+
panel = None
|
712 |
return panel
|
713 |
|
714 |
|
|
|
1440 |
unsafe_allow_html=True,
|
1441 |
)
|
1442 |
|
1443 |
+
with st.expander("See Response Curves", expanded=True):
|
1444 |
+
fig = plot_response_curves(summary_df_sorted)
|
1445 |
+
# st.plotly_chart(rc.response_curves(col))
|
1446 |
+
# st.plotly_chart(fig, use_container_width=True)
|
1447 |
|
1448 |
summary_df = pd.DataFrame(st.session_state["acutual_predicted"])
|
1449 |
# st.dataframe(summary_df)
|