fschwartzer commited on
Commit
6c49f96
1 Parent(s): c92a873

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -159,6 +159,8 @@ with tab1:
159
 
160
  with tab2:
161
 
 
 
162
  if not filtered_df.empty:
163
  data_string = filtered_df['Forecasts'].iloc[0]
164
 
@@ -173,9 +175,9 @@ with tab2:
173
  num_float = float(value)
174
  monetary_value = f'R$ {num_float:,.2f}' # Adding commas for thousands separator
175
  mes += 1
176
- st.write(f"Mês {mes}: {monetary_value}")
177
  else:
178
- st.warning('No data available for the selected filters.')
179
 
180
  # Display the Forecasts values as line plots in the second column
181
 
@@ -205,10 +207,10 @@ with tab2:
205
  chart_data = chart_data.sort_values(by='Period')
206
 
207
  # Display line chart with "period" on X-axis and "Monetary Value" on Y-axis
208
- st.line_chart(chart_data.set_index('Period'))
209
 
210
  else:
211
- st.warning('No data available for the selected filters.')
212
 
213
 
214
  with tab3:
 
159
 
160
  with tab2:
161
 
162
+ col1, col2= st.columns(2)
163
+
164
  if not filtered_df.empty:
165
  data_string = filtered_df['Forecasts'].iloc[0]
166
 
 
175
  num_float = float(value)
176
  monetary_value = f'R$ {num_float:,.2f}' # Adding commas for thousands separator
177
  mes += 1
178
+ col1.write(f"Mês {mes}: {monetary_value}")
179
  else:
180
+ col1.warning('No data available for the selected filters.')
181
 
182
  # Display the Forecasts values as line plots in the second column
183
 
 
207
  chart_data = chart_data.sort_values(by='Period')
208
 
209
  # Display line chart with "period" on X-axis and "Monetary Value" on Y-axis
210
+ col2.line_chart(chart_data.set_index('Period'))
211
 
212
  else:
213
+ col2.warning('No data available for the selected filters.')
214
 
215
 
216
  with tab3: