From a7e4cbfba550d18800a144af645ac559a2248f21 Mon Sep 17 00:00:00 2001 From: kkrusere Date: Sun, 8 Oct 2023 11:13:17 -0400 Subject: [PATCH] update --- Cultural_Health_Moments_app.py | 93 +++++++++++++++++++++++++++++++++- README.md | 2 +- 2 files changed, 92 insertions(+), 3 deletions(-) diff --git a/Cultural_Health_Moments_app.py b/Cultural_Health_Moments_app.py index 3908085..e9f6eed 100644 --- a/Cultural_Health_Moments_app.py +++ b/Cultural_Health_Moments_app.py @@ -40,7 +40,6 @@ ########################################################################################### - st.set_page_config( page_title="Cultural Health Moments App", page_icon= "random", layout="wide" @@ -66,5 +65,95 @@ def load_data(): #loading the list into a pandas dataframe data, check_list, check_list2= load_data() +########################################################################################### + + +thelist = list(data['Name_of_HPP'] + " with "+ data['Chronic_Condition']) + + +dict_mapper = dict() +for i, n in enumerate(thelist): + dict_mapper[n] = i + + +col1, col2, col3 = st.columns((.1,1,.1)) + +with col1: + st.write("") + +with col2: + st.markdown("

Cultural Health Moments:

", unsafe_allow_html=True) + st.markdown("

A Search Analysis During " + "Times of Heightened Awareness To Identify Potential Interception " + "Points With Digital Health Consumers.

", unsafe_allow_html=True) + st.markdown("
", unsafe_allow_html=True) + + + + +with col3: + st.write("") + +st.markdown("### ***Project Contributors:***") +st.markdown("Kuzi Rusere") + + + +row0_space1, row0_1, row0_space2, row0_2, row0_space3 = st.columns((.1, 1, .1, 1, .1)) + +with row0_1: + st.subheader("**Vision:**") + st.markdown("Understanding how cultural health moments impact health consumers’ digital search behavior, " + "and if this provides insight into potential interception points relating to disease-state awareness, " + "education, symptoms, diagnosis, and/or treatment.") + +with row0_2: + st.subheader("**Issue:**") + st.markdown("During high-profile health moments (ex. – the cancer-related deaths of Chadwick Boseman " + "and Eddie Van Halen, or the cancer diagnosis of Jimmy Carter or Rush Limbaugh) digital health consumers’ " + "initial search queries are typically surface-level search (ex. – scandal, wealth, career highlights, spouse, etc.), " + "but the search behavior shifts to awareness, signs, symptoms, and introspection over time. Understanding the time horizon " + "when the shift occurs and what common topical trends exist may provide opportunities to engage by leveraging naturally " + "occurring awareness and search.") + +st.markdown("---") + +row1_space1, row1_1, row1_space2, row1_2, row1_space3 = st.columns((.1, 1, .1, 1, .1)) + +with row1_1: + st.subheader("**Methodology:**") + st.markdown("Examination of publicly available search data as related to high-profile disease state diagnosis and/or deaths. ") + +with row1_2: + st.markdown("The Project made use of the Google Search Trends via PyTrends (which is an unofficial Google Trends API). " + "Google Trends => is a tool by Google that analyzes the popularity (demand, interest overtime) of top search queries in " + "Google Search across various regions, subjects, and languages. The website uses graphs to compare the search volume of different " + "queries overtime. PyTrends inturn is a Python library/module/API that Allows a simple interface for automated downloading " + "of reports from Google Trends.") + +st.markdown("---") + +st.markdown("You can either use our list of High Profile People, Chronic Condition and Date or you can enter the infomation yourself?") + +row2_space1, row2_1, row2_space2, row2_2, row2_space3 = st.columns((.1, 1, .1, 1, .1)) + +with row2_1: + route = st.radio( "Please choose one:", ('Use Availabe List', 'Enter Myself')) + if route == 'Use Availabe List': + choice = st.selectbox("Availabe List: ", thelist) + x = 0 + else: + x = 1 + try: + name = st.text_input("Enter Name: ", "",key="1") + condition = st.text_input("Enter Chronic Condition:", "",key="2") + date = st.text_input("Enter Date: ", "yyyy/mm/dd",key="3") + Date1 = str(datetime.datetime.strptime(date,"%Y/%m/%d").date()) + check = st.checkbox("Have Another Date") + if check: + date2 = st.text_input("Enter Date: ", "yyyy/mm/dd",key="4") + Date2 = str(datetime.datetime.strptime(date2,"%Y/%m/%d").date()) + + except ValueError: + st.warning("Please Make Sure the Date in in the format yyyy/mm/dd, click submit if it's correct") -st.dataframe(check_list) \ No newline at end of file diff --git a/README.md b/README.md index 3444a08..eb5bf8a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
***Project Contributors:*** Kuzi Rusere
-**CHM streamlit App URL:** https://kkrusere-cultural-health-moments-chm-app-2cjnq9.streamlitapp.com/ +**CHM streamlit App URL:** https://cultural-health-moments-u9cfatupzdlsap4ax7jahd.streamlit.app * ***Vision:*** Understanding how cultural health moments impact health consumers’ digital search behavior, and if this provides insight into potential interception points relating to disease-state awareness, education, symptoms, diagnosis, and/or treatment.