Skip to content

Commit 4d3d6ec

Browse files
bnaultswast
andauthored
fix: Skip geography_as_object conversion for REPEATED fields (#1220)
Co-authored-by: Tim Swast <[email protected]>
1 parent c1d3e30 commit 4d3d6ec

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
@@ -1985,7 +1985,7 @@ def to_dataframe(
19851985

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

19911991
return df

0 commit comments

Comments
 (0)