fschwartzer commited on
Commit
03b509e
1 Parent(s): c603f69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,14 +89,14 @@ col1, col2, col3 = st.columns([col1_width, col2_width, col3_width])
89
  # Display the Forecasts values in the first column
90
  col1.header('Composição da RLIT')
91
  labels = table_data['Conta']
92
- sizes = for i in table_data['Próximos 12 meses'] : (i/total_sum)*100
93
 
94
  fig1, ax1 = plt.subplots()
95
  ax1.pie(sizes, labels=labels, autopct='%1.1f%%',
96
  shadow=True, startangle=90)
97
  ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
98
 
99
- col.pyplot(fig1)
100
 
101
 
102
  # Display the Forecasts values in the first column
 
89
  # Display the Forecasts values in the first column
90
  col1.header('Composição da RLIT')
91
  labels = table_data['Conta']
92
+ sizes = [(i / total_sum) * 100 for i in table_data['Próximos 12 meses']]
93
 
94
  fig1, ax1 = plt.subplots()
95
  ax1.pie(sizes, labels=labels, autopct='%1.1f%%',
96
  shadow=True, startangle=90)
97
  ax1.axis('equal') # Equal aspect ratio ensures that pie is drawn as a circle.
98
 
99
+ col1.pyplot(fig1)
100
 
101
 
102
  # Display the Forecasts values in the first column