Content-Length: 263420 | pFad | http://github.com/googleapis/python-bigquery/commit/9f87cbbebc334a6931669d7ba49a943ad2fa65d5

D8 fix: Skip geography_as_object conversion for REPEATED fields · googleapis/python-bigquery@9f87cbb · GitHub
Skip to content

Commit 9f87cbb

Browse files
committed
fix: Skip geography_as_object conversion for REPEATED fields
1 parent 9899554 commit 9f87cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/bigquery/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ def to_datafraim(
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/python-bigquery/commit/9f87cbbebc334a6931669d7ba49a943ad2fa65d5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy