Skip to content

Commit f93ad1c

Browse files
cgrinjorisvandenbossche
authored andcommitted
Ensure total_rows is always set (#13244)
1 parent ef61beb commit f93ad1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/io/gbq.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,8 @@ def load_data(self, dataframe, dataset_id, table_id, chunksize):
441441
rows = []
442442
remaining_rows = len(dataframe)
443443

444-
if self.verbose:
445-
total_rows = remaining_rows
446-
self._print("\n\n")
444+
total_rows = remaining_rows
445+
self._print("\n\n")
447446

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

0 commit comments

Comments
 (0)