Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 4d3d6ec

Browse files
bnaultswast
andauthored
fix: Skip geography_as_object conversion for REPEATED fields (#1220)
Co-authored-by: Tim Swast <swast@google.com>
1 parent c1d3e30 commit 4d3d6ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google/cloud/bigquery/table.py

Lines changed: 1 addition & 1 deletion
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)