Skip to content

Commit

Permalink
fix: Skip geography_as_object conversion for REPEATED fields (googlea…
Browse files Browse the repository at this point in the history
…pis#1220)

Co-authored-by: Tim Swast <swast@google.com>
  • Loading branch information
2 people authored and waltaskew committed Jul 20, 2022
1 parent 35b65c6 commit 67351fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/bigquery/table.py
Expand Up @@ -1985,7 +1985,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

0 comments on commit 67351fd

Please sign in to comment.