From b87d2e45828a12f1c373936ce4c162b28880c9d6 Mon Sep 17 00:00:00 2001 From: OliviaButters <111284147+OliviaButters@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:50:17 +0100 Subject: [PATCH] Update script.py --- script.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.py b/script.py index 89821e4..cfc7c4a 100644 --- a/script.py +++ b/script.py @@ -55,12 +55,12 @@ check=[] check=pd.DataFrame(check) -check['cell_code']=['AAAAAA' for n in range(len(list)-1)] -a_length = len(list[2]) +check['cell_code']=['AAAAAA' for n in range(len(list))] +a_length = len(list[0]) cell='A' # Look at each 5km cell that falls in the area and examine the first two digits -for i in range(0,len(list)-1): +for i in range(0,len(list)): cell=list[i] check.cell_code[i] = cell[a_length - 6:a_length - 4]