Skip to content

Commit

Permalink
Fixing statement GUIDs for FIDE data upload
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis-wmde committed Apr 5, 2024
1 parent e66dd42 commit 56f7a15
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 2,
"id": "7976d899",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -690,6 +690,50 @@
")"
]
},
{
"cell_type": "markdown",
"id": "046d130a",
"metadata": {},
"source": [
"## Fixing GUID Values"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "61b28327",
"metadata": {},
"outputs": [],
"source": [
"df_fide_mismatches_to_upload = pd.read_csv(\n",
" \"validated_players_data_upload.csv\"\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "039525af",
"metadata": {},
"outputs": [],
"source": [
"df_fide_mismatches_to_upload[\"statement_guid\"] = df_fide_mismatches_to_upload[\n",
" \"statement_guid\"\n",
"].str.replace(\"-\", \"$\", 1)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "2ea3e7ed",
"metadata": {},
"outputs": [],
"source": [
"df_fide_mismatches_to_upload.to_csv(\n",
" \"validated_players_data_upload.csv\", encoding=\"utf-8\", index=False\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Loading

0 comments on commit 56f7a15

Please sign in to comment.