Skip to content

fix: support correct numpy construction for dbjson dtype in pandas 1.5 #297

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 6 commits into from
Nov 12, 2024

Conversation

chelsea-lin
Copy link
Contributor

@chelsea-lin chelsea-lin commented Nov 5, 2024

This change fixes an issue where pandas 1.5 would fail to display dbjson data correctly. Previously, attempting to format a DataFrame with dbjson values through np.asarray(db) calls, could result in a ValueError during the formatting process.

@chelsea-lin chelsea-lin requested a review from tswast November 5, 2024 23:46
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. labels Nov 5, 2024
@chelsea-lin chelsea-lin marked this pull request as ready for review November 5, 2024 23:46
@chelsea-lin chelsea-lin requested review from a team as code owners November 5, 2024 23:46
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_dbjsonnparray branch from fcb6e2b to e5416b1 Compare November 8, 2024 22:05
@chelsea-lin chelsea-lin requested a review from tswast November 9, 2024 04:53
@Linchin Linchin assigned tswast and unassigned Linchin Nov 10, 2024
@tswast tswast merged commit f413f35 into main Nov 12, 2024
27 checks passed
@tswast tswast deleted the main_chelsealin_dbjsonnparray branch November 12, 2024 16:43
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-db-dtypes-pandas API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants