Skip to content

Commit

Permalink
Note that variables must be specified with the columns arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Jun 12, 2024
1 parent 9d98321 commit 5ed0956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tableone/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
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.")

0 comments on commit 5ed0956

Please sign in to comment.