Skip to content

Commit 7f4d73c

Browse files
committed
Skip geography_as_object conversion for REPEATED fields
1 parent 9899554 commit 7f4d73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/bigquery/table.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ def to_dataframe(
19821982

19831983
if geography_as_object:
19841984
for field in self.schema:
1985-
if field.field_type.upper() == "GEOGRAPHY":
1985+
if field.field_type.upper() == "GEOGRAPHY" and field.mode != "REPEATED":
19861986
df[field.name] = df[field.name].dropna().apply(_read_wkt)
19871987

19881988
return df

0 commit comments

Comments
 (0)