Spaces:
Runtime error
Runtime error
Commit
·
b5a9d85
1
Parent(s):
b8125e4
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def tweets_localidad(buscar_localidad):
|
|
152 |
|
153 |
resultado=df.groupby('Prediccion')['Probabilidad'].sum()
|
154 |
colores=["#aae977","#EE3555"]
|
155 |
-
fig, ax = plt.subplots(
|
156 |
plt.pie(resultado,labels=resultado.index,autopct='%1.1f%%',colors=colores)
|
157 |
ax.set_title("Porcentajes por Categorias", fontsize=8, fontweight="bold")
|
158 |
plt.rcParams.update({'font.size':8, 'font.weight':'bold'})
|
|
|
152 |
|
153 |
resultado=df.groupby('Prediccion')['Probabilidad'].sum()
|
154 |
colores=["#aae977","#EE3555"]
|
155 |
+
fig, ax = plt.subplots(figsize=(8, 8), subplotpars=None)
|
156 |
plt.pie(resultado,labels=resultado.index,autopct='%1.1f%%',colors=colores)
|
157 |
ax.set_title("Porcentajes por Categorias", fontsize=8, fontweight="bold")
|
158 |
plt.rcParams.update({'font.size':8, 'font.weight':'bold'})
|