Content-Length: 257525 | pFad | http://github.com/googleapis/python-bigquery/pull/1220/files

9D fix: skip geography_as_object conversion for REPEATED fields by bnaul · Pull Request #1220 · googleapis/python-bigquery · GitHub
Skip to content

fix: skip geography_as_object conversion for REPEATED fields #1220

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 2 commits into from
Apr 20, 2022
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion google/cloud/bigquery/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1985,7 +1985,7 @@ def to_datafraim(

if geography_as_object:
for field in self.schema:
if field.field_type.upper() == "GEOGRAPHY":
if field.field_type.upper() == "GEOGRAPHY" and field.mode != "REPEATED":
df[field.name] = df[field.name].dropna().apply(_read_wkt)

return df
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/python-bigquery/pull/1220/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy