From d40b8b1b1998ec0f7e72a82a58b5896326d54420 Mon Sep 17 00:00:00 2001 From: PhilipMay Date: Tue, 2 Jan 2024 17:00:41 +0100 Subject: [PATCH] fix try for loop --- mltb2/data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mltb2/data.py b/mltb2/data.py index 26cc0cc..244579b 100644 --- a/mltb2/data.py +++ b/mltb2/data.py @@ -88,12 +88,12 @@ def _load_colon_label() -> pd.Series: page_text_lines = page_text.splitlines() label = [] - try: - for line in page_text_lines: + for line in page_text_lines: + try: i = int(line) label.append(0 if i > 0 else 1) - except ValueError: - pass # we ignore this + except ValueError: + pass # we ignore this assert len(label) == 62 label_series = pd.Series(label)