From fd3c36e2f0a72e214f16012e51e1619962b9e8a9 Mon Sep 17 00:00:00 2001 From: Yasemin Bridges Date: Sun, 20 Oct 2024 14:32:30 +0100 Subject: [PATCH] ensure column names are separate strings in a tuple --- src/pheval/analyse/generate_summary_outputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pheval/analyse/generate_summary_outputs.py b/src/pheval/analyse/generate_summary_outputs.py index 55d5cd69..6c409393 100644 --- a/src/pheval/analyse/generate_summary_outputs.py +++ b/src/pheval/analyse/generate_summary_outputs.py @@ -39,7 +39,7 @@ def create_comparison_table( table_name (str): Name of the table to extract ranks from """ connector.drop_table(comparison_table_name) - excluded_columns = (", ".join(drop_columns), "identifier") if drop_columns else ("identifier",) + excluded_columns = tuple(drop_columns + ["identifier"]) if drop_columns else ("identifier",) connector.conn.execute( f'CREATE TABLE "{comparison_table_name}" AS SELECT * ' f"EXCLUDE {excluded_columns} FROM {table_name}"