Joshua1808 commited on
Commit
4f8924e
·
1 Parent(s): 3943bfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -159,9 +159,8 @@ def tweets_localidad(buscar_localidad):
159
 
160
  tab1, tab2 = st.tabs(["📈 Chart", "🗃 Data"])
161
  tab1.subheader("Datos")
162
- #tabla.append(muestra)
163
  muestra = st.table(df.reset_index(drop=True).head(5).style.applymap(color_survived, subset=['Prediccion']))
164
- tab2.write(muestra)
165
  tab2.subheader("Gráfico")
166
  resultado = df['Prediccion'].value_counts()
167
  colores=["#EE3555","#aae977"]
@@ -175,7 +174,7 @@ def tweets_localidad(buscar_localidad):
175
  #plt.show()
176
  #st.set_option('deprecation.showPyplotGlobalUse', False)
177
  #st.pyplot()
178
- tab1.st.pyplot()
179
 
180
 
181
  except AttributeError as e:
 
159
 
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
+ #tab2.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
+ tab2.st.pyplot()
178
 
179
 
180
  except AttributeError as e: