Skip to content

Commit a71888a

Browse files
authored
docs(samples): table variable fix (#1287)
Updated table variable in "# Print row data in tabular format." to point at the correct table_id. Fixes https://togithub.com/googleapis/python-bigquery/issues/1286
1 parent fa8f6ec commit a71888a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/browse_table_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def browse_table_data(table_id: str) -> None:
4747
print("Downloaded {} rows from table {}".format(len(rows), table_id))
4848

4949
# Print row data in tabular format.
50-
rows_iter = client.list_rows(table, max_results=10)
50+
rows_iter = client.list_rows(table_id, max_results=10)
5151
format_string = "{!s:<16} " * len(rows_iter.schema)
5252
field_names = [field.name for field in rows_iter.schema]
5353
print(format_string.format(*field_names)) # Prints column headers.

0 commit comments

Comments
 (0)