From e76cc4af667909b84a3bee8f430f6c75b1b1164c Mon Sep 17 00:00:00 2001 From: Dave McKay Date: Thu, 25 Jul 2024 13:48:42 +0100 Subject: [PATCH] . --- csd3-side/scripts/gen_exclude_list.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csd3-side/scripts/gen_exclude_list.py b/csd3-side/scripts/gen_exclude_list.py index 6e59e6b8..c25ba353 100644 --- a/csd3-side/scripts/gen_exclude_list.py +++ b/csd3-side/scripts/gen_exclude_list.py @@ -37,10 +37,10 @@ print(df.head()) print(df.tail()) -for row in df['LOCAL_FOLDER'].iterrows(): - if type(row[1]) != str: - print(row[1]) - print(type(row[1])) +for row in df.iterrows(): + if type(row[1]['LOCAL_FOLDER']) != str: + print(row[1]['LOCAL_FOLDER']) + print(type(row[1]['LOCAL_FOLDER'])) raise ValueError('Non-string LOCAL_FOLDER') df = df.groupby('LOCAL_FOLDER').agg(','.join).reset_index().dropna() print(df['LOCAL_FOLDER'].head())