UjjwalKGupta commited on
Commit
01a7e0d
·
verified ·
1 Parent(s): 0faf3a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -246,6 +246,10 @@ if uploaded_file is not None:
246
 
247
  # Write the final table
248
  st.write(combined_df)
 
 
 
 
249
 
250
  # Create a DataFrame for YoY profile
251
  yoy_df = pd.DataFrame({'Year': [str(i) for i in range(start_year, end_year+1)], 'NDVI_Inside': max_ndvi_geoms, 'NDVI_Buffer': max_ndvi_buffered_geoms})
 
246
 
247
  # Write the final table
248
  st.write(combined_df)
249
+
250
+ # Plot the multiyear timeseries
251
+ st.write("Multiyear Time Series Plot (for given duration)")
252
+ st.line_chart(combined_df[['AvgNDVI_Inside', 'Avg_NDVI_Buffer', 'Date']].set_index('Date'))
253
 
254
  # Create a DataFrame for YoY profile
255
  yoy_df = pd.DataFrame({'Year': [str(i) for i in range(start_year, end_year+1)], 'NDVI_Inside': max_ndvi_geoms, 'NDVI_Buffer': max_ndvi_buffered_geoms})