Spaces:
Build error
Build error
Update app.py
Browse files
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.")
|