Skip to content

Commit

Permalink
Ensure total_rows is always set (pandas-dev#13244)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrin authored and jorisvandenbossche committed Aug 15, 2016
1 parent ef61beb commit f93ad1c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pandas/io/gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,8 @@ def load_data(self, dataframe, dataset_id, table_id, chunksize):
rows = []
remaining_rows = len(dataframe)

if self.verbose:
total_rows = remaining_rows
self._print("\n\n")
total_rows = remaining_rows
self._print("\n\n")

for index, row in dataframe.reset_index(drop=True).iterrows():
row_dict = dict()
Expand Down

0 comments on commit f93ad1c

Please sign in to comment.