From 325a8adc139bf008c72b6c0aea41f68fb4793887 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 11 Dec 2020 14:56:27 +0100 Subject: [PATCH] adding a counter --- rowers/dataprep.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 5324bcd6..4094284d 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -353,7 +353,13 @@ def workout_summary_to_df( rankingpieces = [] boattypes = [] + counter1 = 0 + counter2 = len(ws) + for w in ws: + counter1 += 1 + if counter1 % 10 == 0: + print(counter1,'/',counter2) types.append(w.workouttype) names.append(w.name) ids.append(encoder.encode_hex(w.id))