From 39af2e642ce2af5d7e5cb23caec9c2402fe64ee1 Mon Sep 17 00:00:00 2001 From: Chris Grinolds Date: Tue, 5 Jul 2016 22:11:09 -0700 Subject: [PATCH] Ensure total_rows is always set --- pandas/io/gbq.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py index e706434f29dc5..edd8f8c7b5033 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -426,9 +426,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()