SR05 commited on
Commit
48cc129
·
verified ·
1 Parent(s): 876437f

Update search.py (#5)

Browse files

- Update search.py (224e518753e20b6d84753f89f5293f7d99e0a715)

Files changed (1) hide show
  1. search.py +3 -1
search.py CHANGED
@@ -45,7 +45,9 @@ def search_application(df):
45
 
46
  if not nearest_records.empty:
47
  st.subheader("Nearest Application Numbers")
 
 
48
  nearest_records['Nearest Application'] = ['Before', 'After']
49
- st.table(nearest_records[['Nearest Application', 'Application Number', 'Decision', 'Difference']])
50
  else:
51
  st.info("No nearest application numbers found.")
 
45
 
46
  if not nearest_records.empty:
47
  st.subheader("Nearest Application Numbers")
48
+
49
+ # Exclude the index column from the display
50
  nearest_records['Nearest Application'] = ['Before', 'After']
51
+ st.table(nearest_records[['Nearest Application', 'Application Number', 'Decision', 'Difference']].reset_index(drop=True))
52
  else:
53
  st.info("No nearest application numbers found.")