Skip to content
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

add index=True option to to_gbq #628

Open
tswast opened this issue May 3, 2023 · 0 comments
Open

add index=True option to to_gbq #628

tswast opened this issue May 3, 2023 · 0 comments
Labels
api: bigquery Issues related to the googleapis/python-bigquery-pandas API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@tswast
Copy link
Collaborator

tswast commented May 3, 2023

Is your feature request related to a problem? Please describe.

I'd like to be able to control when the DataFrame Index/MultiIndex is included in the serialized BigQuery table.

Describe the solution you'd like

I'd like a boolean parameter index=True to enable writing the index column(s) to the BigQuery table. For backwards compatibility, we might need to keep this parameter False by default.

Describe alternatives you've considered

Folks can always call DataFrame.reset_index(drop=False) before uploading if they want this behavior, but I do think it'd be nice to be consistent with other I/O methods.

Additional context

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-pandas API. label May 3, 2023
@tswast tswast added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-pandas API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant