From f70032f3b151e040e7fa5f0bdda708fb28594a22 Mon Sep 17 00:00:00 2001 From: Georg Brantegger Date: Sun, 20 Sep 2026 18:09:54 +0200 Subject: [PATCH] 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 --- .../convert_athletes.ipynb | 52 ++++++++++++------- Nextcloud Video Files/rename_files.ipynb | 2 +- .../enrich_oar_df_with_places_info.ipynb | 2 +- 3 files changed, 34 insertions(+), 22 deletions(-) diff --git a/Nextcloud Contact Infos/convert_athletes.ipynb b/Nextcloud Contact Infos/convert_athletes.ipynb index fb5c51e..c28eacb 100644 --- a/Nextcloud Contact Infos/convert_athletes.ipynb +++ b/Nextcloud Contact Infos/convert_athletes.ipynb @@ -18,6 +18,16 @@ "import matplotlib.image as mpimg" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "80d14351", + "metadata": {}, + "outputs": [], + "source": [ + "min_id = 77" + ] + }, { "cell_type": "code", "execution_count": null, @@ -67,7 +77,17 @@ "metadata": {}, "outputs": [], "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", "metadata": {}, "outputs": [], + "source": [ + "df = df.loc[df['ID']>=min_id,:].copy()" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4e33446d", + "metadata": {}, + "outputs": [], "source": [ "df" ] @@ -120,16 +150,6 @@ " return False" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "68eaead1", - "metadata": {}, - "outputs": [], - "source": [ - "df" - ] - }, { "cell_type": "code", "execution_count": null, @@ -265,19 +285,11 @@ "source": [ "df.apply(convert_rows_to_vcf,axis=1)" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "5f1b0c55", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { "kernelspec": { - "display_name": ".venv (3.14.4.final.0)", + "display_name": ".venv (3.14.4)", "language": "python", "name": "python3" }, diff --git a/Nextcloud Video Files/rename_files.ipynb b/Nextcloud Video Files/rename_files.ipynb index 0bcfd7d..773b40e 100644 --- a/Nextcloud Video Files/rename_files.ipynb +++ b/Nextcloud Video Files/rename_files.ipynb @@ -127,7 +127,7 @@ ], "metadata": { "kernelspec": { - "display_name": ".venv (3.14.4.final.0)", + "display_name": ".venv (3.14.4)", "language": "python", "name": "python3" }, diff --git a/Nextcloud_Material/enrich_oar_df_with_places_info.ipynb b/Nextcloud_Material/enrich_oar_df_with_places_info.ipynb index bdc527e..338b67f 100644 --- a/Nextcloud_Material/enrich_oar_df_with_places_info.ipynb +++ b/Nextcloud_Material/enrich_oar_df_with_places_info.ipynb @@ -191,7 +191,7 @@ ], "metadata": { "kernelspec": { - "display_name": ".venv (3.14.4.final.0)", + "display_name": ".venv (3.14.4)", "language": "python", "name": "python3" },