Skip to content

Commit

Permalink
Skip geography_as_object conversion for REPEATED fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaul committed Apr 15, 2022
1 parent 9899554 commit 7f4d73c
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 7f4d73c

Please sign in to comment.