fschwartzer commited on
Commit
9f3b801
1 Parent(s): a2fbaf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -82,6 +82,9 @@ if not filtered_df.empty:
82
  # Create a DataFrame from the list
83
  chart_data = pd.DataFrame(data)
84
 
 
 
 
85
  # Display line chart with "period" on X-axis and "Monetary Value" on Y-axis
86
  st.line_chart(chart_data.set_index('Period'))
87
 
 
82
  # Create a DataFrame from the list
83
  chart_data = pd.DataFrame(data)
84
 
85
+ # Sort the DataFrame by 'Period'
86
+ chart_data = chart_data.sort_values(by='Period')
87
+
88
  # Display line chart with "period" on X-axis and "Monetary Value" on Y-axis
89
  st.line_chart(chart_data.set_index('Period'))
90