diff --git a/src/psycop_feature_generation/data_checks/flattened/feature_describer.py b/src/psycop_feature_generation/data_checks/flattened/feature_describer.py index 82c93863..b4ef45d8 100644 --- a/src/psycop_feature_generation/data_checks/flattened/feature_describer.py +++ b/src/psycop_feature_generation/data_checks/flattened/feature_describer.py @@ -190,7 +190,7 @@ def generate_feature_description_df( string_match = f"{first_part}[\\dA-Za-z\\-]+{last_part}" column_names = [ - re.match(string_match, column)[0] # type: ignore + re.match(string_match, column)[0] # type: ignore for column in df.columns if re.match(string_match, column) is not None ]