Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,8 @@ if uploaded_file is not None:
|
|
| 88 |
papers.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
|
| 89 |
'Publication Type': 'Document Type', 'Source Title': 'Source title'}, inplace=True)
|
| 90 |
|
| 91 |
-
|
|
|
|
| 92 |
|
| 93 |
if not missing_columns:
|
| 94 |
st.write('✅ Vizualisation')
|
|
|
|
| 88 |
papers.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
|
| 89 |
'Publication Type': 'Document Type', 'Source Title': 'Source title'}, inplace=True)
|
| 90 |
|
| 91 |
+
col2check = ['Document Type','Source title','Cited by','Year']
|
| 92 |
+
miss_col = [column for column in col2check if column not in data.columns]
|
| 93 |
|
| 94 |
if not missing_columns:
|
| 95 |
st.write('✅ Vizualisation')
|