From 5ed095612d236b011364b24a2511f6ef4eebe6b4 Mon Sep 17 00:00:00 2001 From: Tom Pollard Date: Tue, 11 Jun 2024 22:21:17 -0400 Subject: [PATCH] Note that variables must be specified with the columns arg. --- tableone/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tableone/validators.py b/tableone/validators.py index cc83a1c..c8d10c7 100644 --- a/tableone/validators.py +++ b/tableone/validators.py @@ -156,5 +156,5 @@ def check_columns_exist(self, columns: list, categorical: list, continuous: list all_specified = cat_set.union(cont_set) if not all_specified.issubset(set(columns)): missing = list(all_specified - set(columns)) - raise ValueError("Specified categorical/continuous columns not found in the DataFrame: " - f"{missing}") \ No newline at end of file + raise ValueError("Specified categorical or continuous columns not found in the DataFrame: " + f"{missing}. If the columns argument is specified, it must contain these variables.") \ No newline at end of file