Skip to content

Commit

Permalink
src/merge_source_csvs.py: use YYYY dates for Rayyan
Browse files Browse the repository at this point in the history
Rayyan calls this the "year" and the ISO8601 format confuses users
with Microsoft Excel anyway. Bah humbug.
  • Loading branch information
alanorth committed Nov 19, 2024
1 parent 6cf9317 commit b56faea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/merge_source_csvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@
logger.info(f"> Normalizing countries...\n")
df_final["Countries"] = df_final["Countries"].apply(normalize_countries)

# Use YYYY dates for Rayyan
df_final["Publication date"] = df_final["Publication date"].str.slice(start=0, stop=4)

# Align headers with Rayyan
df_final = df_final.rename(
columns={
Expand Down

0 comments on commit b56faea

Please sign in to comment.