Skip to content

Commit

Permalink
Update total rows in progress bar during download
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPaton authored Mar 25, 2019
1 parent c6efe1b commit b23d581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bigquery/google/cloud/bigquery/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ def _to_dataframe_tabledata_list(self, dtypes):
frames.append(self._to_dataframe_dtypes(page, column_names, dtypes))

if pbar is not None:
pbar.total = pbar.total or self.total_rows
# update progress bar with number of rows in last frame
pbar.update(len(frames[-1]))

Expand Down

0 comments on commit b23d581

Please sign in to comment.