Skip to content

Commit

Permalink
Remove duplicates and add reference number'
Browse files Browse the repository at this point in the history
  • Loading branch information
nsorros committed Sep 12, 2023
1 parent 5c9dd2c commit d71acf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/create_xlinear_bertmesh_comparison_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ def create_comparison_csv(
active_grants = active_grants[~active_grants["Synopsis"].isna()]
active_grants.sample(frac=1)
active_grants_sample = active_grants.iloc[:active_portfolio_sample]
active_grants_sample = pd.DataFrame({"abstract": active_grants_sample["Synopsis"]})
active_grants_sample = pd.DataFrame({"abstract": active_grants_sample["Synopsis"], "Reference": active_grants_sample["Reference"]})

Check failure on line 133 in scripts/create_xlinear_bertmesh_comparison_csv.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E501)

scripts/create_xlinear_bertmesh_comparison_csv.py:133:89: E501 Line too long (135 > 88 characters)
active_grants_sample["active_portfolio"] = 1
active_grants.drop_duplicates(subset="abstract", inplace=True)
grants_sample = pd.concat([grants_sample, active_grants_sample])

abstracts = grants_sample["abstract"].tolist()
Expand Down

0 comments on commit d71acf2

Please sign in to comment.