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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: skip geography_as_object conversion for REPEATED fields #1220

Merged
merged 2 commits into from Apr 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion google/cloud/bigquery/table.py
Expand Up @@ -1982,7 +1982,7 @@ def to_dataframe(

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