faizhalas commited on
Commit
8cf3d0f
·
verified ·
1 Parent(s): 8578e00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -56,4 +56,12 @@ if uploaded_file is not None:
56
  elif extype.endswith('.txt'):
57
  data = conv_txt(extype)
58
 
59
- edited_df = st.data_editor(data)
 
 
 
 
 
 
 
 
 
56
  elif extype.endswith('.txt'):
57
  data = conv_txt(extype)
58
 
59
+ edited_df = st.data_editor(data)
60
+
61
+ columns_to_check = ['Title', 'Source title', 'Author Keywords', 'Keywords Plus']
62
+
63
+ for column in columns_to_check:
64
+ if column in data.columns:
65
+ print(f"The column '{column}' exists in the DataFrame.")
66
+ else:
67
+ print(f"The column '{column}' does not exist in the DataFrame.")