Spaces:
Runtime error
Runtime error
Commit
·
1333876
1
Parent(s):
b65d150
Update app.py
Browse files
app.py
CHANGED
@@ -163,8 +163,8 @@ def tweets_localidad(buscar_localidad):
|
|
163 |
#df = df[df["Probabilidad"] > 0.5]
|
164 |
#df = df.sort_values(by='Probabilidad', ascending=False)
|
165 |
df['Probabilidad'] = df['Probabilidad'].apply(lambda x: round(x, 3))
|
166 |
-
muestra = st.table(df.reset_index(drop=True).head(
|
167 |
-
resultado=df.groupby('Prediccion')['Probabilidad'].
|
168 |
colores=["#EE3555","#aae977"]
|
169 |
fig, ax = plt.subplots()
|
170 |
fig.set_size_inches(2, 2)
|
|
|
163 |
#df = df[df["Probabilidad"] > 0.5]
|
164 |
#df = df.sort_values(by='Probabilidad', ascending=False)
|
165 |
df['Probabilidad'] = df['Probabilidad'].apply(lambda x: round(x, 3))
|
166 |
+
muestra = st.table(df.reset_index(drop=True).head(10).style.applymap(color_survived, subset=['Prediccion']))
|
167 |
+
resultado=df.groupby('Prediccion')['Probabilidad'].mean()
|
168 |
colores=["#EE3555","#aae977"]
|
169 |
fig, ax = plt.subplots()
|
170 |
fig.set_size_inches(2, 2)
|