fixed convert_athlets to work with slightly changed csv format.

also introduced minimum submission id, to not need to clear csv file online before running the code
This commit is contained in:
2026-09-20 18:09:54 +02:00
parent dbc6a3806c
commit f70032f3b1
3 changed files with 34 additions and 22 deletions

View File

@@ -18,6 +18,16 @@
"import matplotlib.image as mpimg" "import matplotlib.image as mpimg"
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"id": "80d14351",
"metadata": {},
"outputs": [],
"source": [
"min_id = 77"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
@@ -67,7 +77,17 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"df = pd.read_csv(io.StringIO(r.text),usecols=[3,4,5,6,7,8],header=0,names=['Vorname','Nachname','rower','Jahrgang','Foto','Telefonnummer'])\n" "df = pd.read_csv(io.StringIO(r.text),usecols=[0,4,5,6,7,8,9],header=0,names=['ID','Vorname','Nachname','rower','Jahrgang','Foto','Telefonnummer'], skiprows=2)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "da6f2220",
"metadata": {},
"outputs": [],
"source": [
"df"
] ]
}, },
{ {
@@ -76,6 +96,16 @@
"id": "28dbb7e7", "id": "28dbb7e7",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [
"df = df.loc[df['ID']>=min_id,:].copy()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4e33446d",
"metadata": {},
"outputs": [],
"source": [ "source": [
"df" "df"
] ]
@@ -120,16 +150,6 @@
" return False" " return False"
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"id": "68eaead1",
"metadata": {},
"outputs": [],
"source": [
"df"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
@@ -265,19 +285,11 @@
"source": [ "source": [
"df.apply(convert_rows_to_vcf,axis=1)" "df.apply(convert_rows_to_vcf,axis=1)"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5f1b0c55",
"metadata": {},
"outputs": [],
"source": []
} }
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": ".venv (3.14.4.final.0)", "display_name": ".venv (3.14.4)",
"language": "python", "language": "python",
"name": "python3" "name": "python3"
}, },

View File

@@ -127,7 +127,7 @@
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": ".venv (3.14.4.final.0)", "display_name": ".venv (3.14.4)",
"language": "python", "language": "python",
"name": "python3" "name": "python3"
}, },

View File

@@ -191,7 +191,7 @@
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": ".venv (3.14.4.final.0)", "display_name": ".venv (3.14.4)",
"language": "python", "language": "python",
"name": "python3" "name": "python3"
}, },