Skip to content
Snippets Groups Projects
Commit 56202a5c authored by Maxence Larrieu's avatar Maxence Larrieu
Browse files

add datacite clients uga

parent 5a958b88
No related branches found
No related tags found
No related merge requests found
......@@ -52,10 +52,15 @@ for doi in dois : #[:300]
temp_rows.append(selected_md) ## ajouter ce dictionnaire à une liste
print(f"\tadded\t\t{doi}")
## if new datasets has been founded
if temp_rows :
df_fresh = pd.DataFrame(temp_rows)
df_out = pd.concat([df_old, df_fresh], ignore_index=True)
df_out.to_csv("../dois-uga.csv", index = False)
print(f"\n\nnb of doi exported \t{len(df_out)}")
## output another csv with datacite client and number of datasets
df_client_raw = df_out["client"].value_counts()
df_client_raw.to_csv("all_datacite_clients_for_uga.csv")
......@@ -5,7 +5,6 @@ df = my_fct.load_and_treat_csv()
#print(df.columns)
df_client_raw = df["client"].value_counts()
df_client_raw.to_csv("all_datacite_clients.csv")
## regroup small values in "other"
treshold = 20
......
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