Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: Item DOI #55

Closed
Haythamyounus opened this issue Aug 14, 2023 · 5 comments
Closed

KeyError: Item DOI #55

Haythamyounus opened this issue Aug 14, 2023 · 5 comments

Comments

@Haythamyounus
Copy link

Hi all,

when i tried to upload and merge csv file using litstudy, I got this error Item DOI, however, the csv file I downloaded it from Scopus

@isazi
Copy link
Member

isazi commented Aug 15, 2023

Can you provide a snippet of your code, the error message, and the input file?

@Haythamyounus
Copy link
Author

affiliation
after fix Item DOI
authors
Item DOI
scopus.csv
FMEA IEEE.csv

Hi @isazi thanks for your reply, I have attached the two file data one from IEEE and the other from Scopus, However, I have fixed the error of (Item DOI) by changing load_springer_csv to load_csv. in the meanwhile another error was raised and I have attached a snap of the error, the error is regarding plot_affiliation_histogram and plot_author_histogram, I have tried to use the power of Bard AI and GPT to help me to fix the error but it still, i cant fix it, it will be very grateful if you could help me in that

@isazi
Copy link
Member

isazi commented Aug 15, 2023

One of the entries in the IEEE file, i.e. the paper titled "Statistical Model for a Failure Mode and Effects Analysis and its Application to Computer Fault-Tracing", uses semicolons as separators for the different fields on the affiliation, and that is wrongly parsed. As a workaround, you could try to manually modify that entry to remove the unnecessary semicolons.

@stijnh stijnh mentioned this issue Aug 15, 2023
stijnh added a commit that referenced this issue Aug 16, 2023
@stijnh
Copy link
Member

stijnh commented Aug 21, 2023

Indeed, as @isazi said, there is an error in this CSV file for the affiliations for one row. You can remove this row from the CSV file.

We have also updated litstudy to better handle such corner cases. You can update to the latest version of litstudy using the following command:

pip install git+https://github.com/NLeSC/litstudy

@stijnh
Copy link
Member

stijnh commented Oct 9, 2023

This has been fixed in the latest release (1.0.6)

@stijnh stijnh closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants