From 3a5368bee544fc7cfc9ce203ae9fbe9025a180f6 Mon Sep 17 00:00:00 2001 From: kiraksi Date: Fri, 1 Dec 2023 17:24:24 -0800 Subject: [PATCH] Fixed valueerror message --- pandas_gbq/gbq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas_gbq/gbq.py b/pandas_gbq/gbq.py index dbb9a87e..cebcad5c 100644 --- a/pandas_gbq/gbq.py +++ b/pandas_gbq/gbq.py @@ -974,7 +974,7 @@ def read_gbq( if col_order and not columns: columns = col_order elif col_order and columns: - raise ValueError("Must specify either columns or col_order, not both") + raise ValueError("Must specify either columns (preferred) or col_order, not both") # Change the order of columns in the DataFrame based on provided list # TODO(kiraksi): allow columns to be a subset of all columns in the table, with follow up PR