8000 Variable fix · googleapis/python-bigquery@fe44b92 · GitHub
[go: up one dir, main page]

Skip to content
  • Insights
  • Commit fe44b92

    Browse files
    authored
    Variable fix
    Updated table variable in "# Print row data in tabular format." to point at the correct table_id.
    1 parent 2cc4c0b commit fe44b92

    File tree

    1 file changed

    +2
    -2
    lines changed

    1 file changed

    +2
    -2
    lines changed

    samples/browse_table_data.py

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -45,9 +45,9 @@ def browse_table_data(table_id: str) -> None:
    4545

    4646
    rows = list(rows_iter)
    4747
    print("Downloaded {} rows from table {}".format(len(rows), table_id))
    48-
    48+
    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)
    0