Skip to content

Commit 2624822

Browse files
committed
Add example showing interation w/ result rows / schema.
Addresses: #1016 (comment)
1 parent 5baabbf commit 2624822

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/bigquery-usage.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ Get rows from a table's data:
240240
('full_name', 'age')
241241
>>> list(rows.csv)
242242
[('Abel Adamson', 27), ('Beverly Bowman', 33)]
243+
>>> for row in rows:
244+
... for field, value in zip(table.schema, row):
245+
... do_something(field, value)
243246

244247
Delete a table:
245248

0 commit comments

Comments
 (0)