fschwartzer commited on
Commit
d03396c
1 Parent(s): e270420

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -9,6 +9,8 @@ df = pd.read_csv("anomalies.csv", quotechar='"')
9
 
10
  df.rename(columns={"ds": "Ano e mês", "real": "Valor Monetário", "group": "Grupo"}, inplace=True)
11
 
 
 
12
  print(df)
13
 
14
  # Filter 'real' higher than 10 Million
@@ -52,7 +54,7 @@ def response(user_question, table_data):
52
 
53
  # Streamlit interface
54
 
55
- st.dataframe(table_data.sort_values(by=['Ano e mês', 'Valor Monetário']), ascending=False) # Add this line to display the table data
56
 
57
  st.markdown("""
58
  <div style='display: flex; align-items: center;'>
 
9
 
10
  df.rename(columns={"ds": "Ano e mês", "real": "Valor Monetário", "group": "Grupo"}, inplace=True)
11
 
12
+ df.sort_values(by=['Ano e mês', 'Valor Monetário'], ascending=False, inplace=True)
13
+
14
  print(df)
15
 
16
  # Filter 'real' higher than 10 Million
 
54
 
55
  # Streamlit interface
56
 
57
+ st.dataframe(table_data)
58
 
59
  st.markdown("""
60
  <div style='display: flex; align-items: center;'>