Skip to content

Commit 971ee33

Browse files
committed
refactor: restore original order of max_results in __repr__
1 parent bd56992 commit 971ee33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigframes/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,13 +785,13 @@ def __repr__(self) -> str:
785785
return object.__repr__(self)
786786

787787
opts = bigframes.options.display
788+
max_results = opts.max_rows
788789
if opts.repr_mode == "deferred":
789790
return formatter.repr_query_job(self._compute_dry_run())
790791

791792
# TODO(swast): pass max_columns and get the true column count back. Maybe
792793
# get 1 more column than we have requested so that pandas can add the
793794
# ... for us?
794-
max_results = opts.max_rows
795795
pandas_df, row_count, query_job = self._block.retrieve_repr_request_results(
796796
max_results
797797
)

0 commit comments

Comments
 (0)