Skip to content

add index=True option to to_gbq #628

Open
@tswast

Description

@tswast

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-bigquery-pandas API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions