Spaces:
Running
Running
Update pages/5 Burst Detection.py
Browse files- pages/5 Burst Detection.py +13 -3
pages/5 Burst Detection.py
CHANGED
|
@@ -74,6 +74,12 @@ with st.expander("Before you start", expanded = True):
|
|
| 74 |
| Lens.org | Comma-separated values | |
|
| 75 |
| | (.csv) | |
|
| 76 |
+----------------+------------------------| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
| Other | .csv .xls .xlsx | |
|
| 78 |
+----------------+------------------------| |
|
| 79 |
| Hathitrust | .json | |
|
|
@@ -111,8 +117,9 @@ def upload(extype):
|
|
| 111 |
#lens.org
|
| 112 |
if 'Publication Year' in df.columns:
|
| 113 |
df.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
|
| 114 |
-
|
| 115 |
-
|
|
|
|
| 116 |
df = sf.dim(df)
|
| 117 |
col_dict = {'MeSH terms': 'Keywords',
|
| 118 |
'PubYear': 'Year',
|
|
@@ -120,7 +127,10 @@ def upload(extype):
|
|
| 120 |
'Publication Type': 'Document Type'
|
| 121 |
}
|
| 122 |
df.rename(columns=col_dict, inplace=True)
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
| 124 |
return df
|
| 125 |
|
| 126 |
@st.cache_data(ttl=3600)
|
|
|
|
| 74 |
| Lens.org | Comma-separated values | |
|
| 75 |
| | (.csv) | |
|
| 76 |
+----------------+------------------------| |
|
| 77 |
+
| Dimensions | Comma-separated values | |
|
| 78 |
+
| | (.csv) | |
|
| 79 |
+
+----------------+------------------------| |
|
| 80 |
+
| OpenAlex | Comma-separated values | |
|
| 81 |
+
| | (.csv) | |
|
| 82 |
+
+----------------+------------------------| |
|
| 83 |
| Other | .csv .xls .xlsx | |
|
| 84 |
+----------------+------------------------| |
|
| 85 |
| Hathitrust | .json | |
|
|
|
|
| 117 |
#lens.org
|
| 118 |
if 'Publication Year' in df.columns:
|
| 119 |
df.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
|
| 120 |
+
'Publication Type': 'Document Type', 'Source Title': 'Source title'}, inplace=True)
|
| 121 |
+
|
| 122 |
+
elif "About the data" in df.columns[0]:
|
| 123 |
df = sf.dim(df)
|
| 124 |
col_dict = {'MeSH terms': 'Keywords',
|
| 125 |
'PubYear': 'Year',
|
|
|
|
| 127 |
'Publication Type': 'Document Type'
|
| 128 |
}
|
| 129 |
df.rename(columns=col_dict, inplace=True)
|
| 130 |
+
|
| 131 |
+
elif "ids.openalex" in df.columns:
|
| 132 |
+
df.rename(columns={'publication_year': 'Year'}, inplace=True)
|
| 133 |
+
|
| 134 |
return df
|
| 135 |
|
| 136 |
@st.cache_data(ttl=3600)
|