Skip to content

BigQuery: use union categorical to concatenate pages in to_dataframe when categorical dtype is requested #8044

Closed
@dkapitan

Description

@dkapitan

I am working on an enhancement for pandas-gbq, where we would like to reduce the memory footprint in pandas through downcasting. See googleapis/python-bigquery-pandas#275 for the full details.

I have made a first working version and getting erratic behaviour in the conversion of STRING to pandas category. It seems like it has to do with the size of the query results.

See attached notebook for the code example.
pandas-gbq-bugtracing.ipynb.zip

Metadata

Metadata

Assignees

Labels

Python 3 OnlyThis work would involve supporting Python 3 only code paths.api: bigqueryIssues related to the BigQuery 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