When you run read_references the Publication Year is still blank in the csv file. I went back and it is in the dataframe, but if you do foo_references$PY you will see they are in the dataframe as "1998\n". As a result, they PY column in the csv file in the "output" folder is blank.
An easy fix, whihc I just did manually with the file I was working on. The function needs to have something like
When you run
read_references
the Publication Year is still blank in the csv file. I went back and it is in the dataframe, but if you dofoo_references$PY
you will see they are in the dataframe as"1998\n"
. As a result, they PY column in the csv file in the "output" folder is blank.An easy fix, whihc I just did manually with the file I was working on. The function needs to have something like
line 1 deletes the \n, then line 2 converts the string to a numeric value and BOOM. saved in the csv.