Skip to content

feat: add 'columns' as an alias for 'col_order' #701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Dec 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed valueerror message
  • Loading branch information
kiraksi committed Dec 2, 2023
commit 3a5368bee544fc7cfc9ce203ae9fbe9025a180f6
2 changes: 1 addition & 1 deletion pandas_gbq/gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down