Skip to content
Snippets Groups Projects
Commit 0d7e31cc authored by Elias Chetouane's avatar Elias Chetouane
Browse files

Utilisation de la nouvelle fonction dans le code

parent 7c03fc71
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,15 @@ for doi in dois : #[:300] ...@@ -56,6 +56,15 @@ for doi in dois : #[:300]
## if new datasets has been founded ## if new datasets has been founded
if temp_rows : if temp_rows :
df_fresh = pd.DataFrame(temp_rows) df_fresh = pd.DataFrame(temp_rows)
for i in range(0, len(df_fresh)):
result = my_functions.get_origin_version(df_fresh.loc[df_fresh.index[i], "doi"])
if result[0] is in df_old["doi"]: df_fresh.drop(df_fresh.index[i])
else:
df_fresh.loc[df_fresh.index[i], "doi"] = result[0]
df_fresh.loc[df_fresh.index[i], "versionCount"] = result[1]
df_fresh.loc[df_fresh.index[i], "citationCount"] = result[2]
df_concat = pd.concat([df_old, df_fresh], ignore_index=True) df_concat = pd.concat([df_old, df_fresh], ignore_index=True)
## remove not wanted datacite type & clients ## remove not wanted datacite type & clients
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment