Spaces:
Running
Running
Update pages/0 FileChecker.py
Browse files- pages/0 FileChecker.py +6 -0
pages/0 FileChecker.py
CHANGED
|
@@ -44,6 +44,12 @@ def upload(extype):
|
|
| 44 |
'Publication Type': 'Document Type'
|
| 45 |
}
|
| 46 |
keywords.rename(columns=col_dict, inplace=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
return keywords
|
| 48 |
|
| 49 |
@st.cache_data(ttl=3600)
|
|
|
|
| 44 |
'Publication Type': 'Document Type'
|
| 45 |
}
|
| 46 |
keywords.rename(columns=col_dict, inplace=True)
|
| 47 |
+
|
| 48 |
+
elif "ids.openalex" in keywords.columns:
|
| 49 |
+
keywords.rename(columns={'keywords.display_name': 'Keywords', 'publication_year': 'Year',
|
| 50 |
+
'cited_by_count': 'Cited by', 'type': 'Document Type',
|
| 51 |
+
'primary_location.source.display_name': 'Source title'}, inplace=True)
|
| 52 |
+
|
| 53 |
return keywords
|
| 54 |
|
| 55 |
@st.cache_data(ttl=3600)
|