Spaces:
Runtime error
Runtime error
Commit
·
bfaa73e
1
Parent(s):
4f8924e
Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ def tweets_localidad(buscar_localidad):
|
|
160 |
tab1, tab2 = st.tabs(["📈 Chart", "🗃 Data"])
|
161 |
tab1.subheader("Datos")
|
162 |
muestra = st.table(df.reset_index(drop=True).head(5).style.applymap(color_survived, subset=['Prediccion']))
|
163 |
-
|
164 |
tab2.subheader("Gráfico")
|
165 |
resultado = df['Prediccion'].value_counts()
|
166 |
colores=["#EE3555","#aae977"]
|
@@ -174,7 +174,7 @@ def tweets_localidad(buscar_localidad):
|
|
174 |
#plt.show()
|
175 |
#st.set_option('deprecation.showPyplotGlobalUse', False)
|
176 |
#st.pyplot()
|
177 |
-
|
178 |
|
179 |
|
180 |
except AttributeError as e:
|
|
|
160 |
tab1, tab2 = st.tabs(["📈 Chart", "🗃 Data"])
|
161 |
tab1.subheader("Datos")
|
162 |
muestra = st.table(df.reset_index(drop=True).head(5).style.applymap(color_survived, subset=['Prediccion']))
|
163 |
+
tab1.write(muestra)
|
164 |
tab2.subheader("Gráfico")
|
165 |
resultado = df['Prediccion'].value_counts()
|
166 |
colores=["#EE3555","#aae977"]
|
|
|
174 |
#plt.show()
|
175 |
#st.set_option('deprecation.showPyplotGlobalUse', False)
|
176 |
#st.pyplot()
|
177 |
+
st.pyplot()
|
178 |
|
179 |
|
180 |
except AttributeError as e:
|