Spaces:
Running
Running
drguilhermeapolinario
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from streamlit_extras.stylable_container import stylable_container
|
|
16 |
from streamlit_folium import folium_static
|
17 |
from streamlit_option_menu import option_menu
|
18 |
|
19 |
-
from data_cleaning import
|
20 |
|
21 |
st.set_page_config(
|
22 |
page_title="Dashboard UBS Flamengo",
|
@@ -73,31 +73,35 @@ def gerar_resumo_df():
|
|
73 |
"""
|
74 |
resumo = ""
|
75 |
|
76 |
-
if
|
|
|
|
|
|
|
|
|
77 |
resumo += "Resumo DF_HEAD:\n"
|
78 |
resumo += DF_HEAD.to_string(index=False) + "\n\n"
|
79 |
|
80 |
-
if
|
81 |
resumo += "Resumo DF_IDADE:\n"
|
82 |
resumo += DF_IDADE.to_string(index=False) + "\n\n"
|
83 |
|
84 |
-
if
|
85 |
-
resumo += f"Resumo DF_GENERO:\n{DF_GENERO.
|
86 |
|
87 |
-
if
|
88 |
-
resumo += f"Resumo DF_COR:\n{DF_COR.
|
89 |
|
90 |
-
if
|
91 |
-
resumo += f"Resumo DF_DEFICIENCIA:\n{DF_DEFICIENCIA.
|
92 |
|
93 |
-
if
|
94 |
-
resumo += f"Resumo DF_DOENCAS:\n{DF_DOENCAS.
|
95 |
|
96 |
-
if
|
97 |
-
resumo += f"Resumo DF_ESCOLA:\n{DF_ESCOLA.
|
98 |
|
99 |
-
if
|
100 |
-
resumo += f"Resumo DF_TRANSGEN:\n{DF_TRANSGEN.
|
101 |
|
102 |
return resumo
|
103 |
|
|
|
16 |
from streamlit_folium import folium_static
|
17 |
from streamlit_option_menu import option_menu
|
18 |
|
19 |
+
from data_cleaning import processar_arquivo
|
20 |
|
21 |
st.set_page_config(
|
22 |
page_title="Dashboard UBS Flamengo",
|
|
|
73 |
"""
|
74 |
resumo = ""
|
75 |
|
76 |
+
if DF_DATA is not None:
|
77 |
+
resumo += "Resumo DF_DATA:\n"
|
78 |
+
resumo += DF_DATA.to_string(index=False) + "\n\n"
|
79 |
+
|
80 |
+
if DF_HEAD is not None:
|
81 |
resumo += "Resumo DF_HEAD:\n"
|
82 |
resumo += DF_HEAD.to_string(index=False) + "\n\n"
|
83 |
|
84 |
+
if DF_IDADE is not None:
|
85 |
resumo += "Resumo DF_IDADE:\n"
|
86 |
resumo += DF_IDADE.to_string(index=False) + "\n\n"
|
87 |
|
88 |
+
if DF_GENERO is not None:
|
89 |
+
resumo += f"Resumo DF_GENERO:\n{DF_GENERO.to_string(index=False)}\n\n"
|
90 |
|
91 |
+
if DF_COR is not None:
|
92 |
+
resumo += f"Resumo DF_COR:\n{DF_COR.to_string(index=False)}\n\n"
|
93 |
|
94 |
+
if DF_DEFICIENCIA is not None:
|
95 |
+
resumo += f"Resumo DF_DEFICIENCIA:\n{DF_DEFICIENCIA.to_string(index=False)}\n\n"
|
96 |
|
97 |
+
if DF_DOENCAS is not None:
|
98 |
+
resumo += f"Resumo DF_DOENCAS:\n{DF_DOENCAS.to_string(index=False)}\n\n"
|
99 |
|
100 |
+
if DF_ESCOLA is not None:
|
101 |
+
resumo += f"Resumo DF_ESCOLA:\n{DF_ESCOLA.to_string(index=False)}\n\n"
|
102 |
|
103 |
+
if DF_TRANSGEN is not None:
|
104 |
+
resumo += f"Resumo DF_TRANSGEN:\n{DF_TRANSGEN.to_string(index=False)}\n\n"
|
105 |
|
106 |
return resumo
|
107 |
|