DrishtiSharma commited on
Commit
abee549
ยท
verified ยท
1 Parent(s): dcf8917

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -203,7 +203,8 @@ if st.session_state.df is not None:
203
  st.plotly_chart(fig, use_container_width=True)
204
 
205
  # Show Conclusion
206
- st.markdown(insert_section + parts[1])
 
207
  else:
208
  # Default if Conclusion not found
209
  st.markdown(result)
@@ -229,16 +230,6 @@ if st.session_state.df is not None:
229
  title="Salary Distribution by Employment Type")
230
  st.plotly_chart(fig3)
231
 
232
- if "company_size" in st.session_state.df.columns:
233
- fig4 = px.box(st.session_state.df, x="company_size", y="salary_in_usd",
234
- title="Salary Distribution by Company Size")
235
- st.plotly_chart(fig4)
236
-
237
- if "region" in st.session_state.df.columns:
238
- fig5 = px.box(st.session_state.df, x="region", y="salary_in_usd",
239
- title="Salary Distribution by Region")
240
- st.plotly_chart(fig5)
241
-
242
  temp_dir.cleanup()
243
  else:
244
  st.info("Please load a dataset to proceed.")
 
203
  st.plotly_chart(fig, use_container_width=True)
204
 
205
  # Show Conclusion
206
+ st.markdown(insert_section)
207
+ st.markdown(parts[1])
208
  else:
209
  # Default if Conclusion not found
210
  st.markdown(result)
 
230
  title="Salary Distribution by Employment Type")
231
  st.plotly_chart(fig3)
232
 
 
 
 
 
 
 
 
 
 
 
233
  temp_dir.cleanup()
234
  else:
235
  st.info("Please load a dataset to proceed.")