Skip to content

Commit 7e47895

Browse files
committed
Revert unncessary change
1 parent b0f1525 commit 7e47895

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bigframes/dataframe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ def __repr__(self) -> str:
789789

790790
opts = bigframes.options.display
791791
max_results = opts.max_rows
792-
if opts.repr_mode == "deferred":
792+
# anywdiget mode uses the same display logic as the "deferred" mode
793+
# for faster execution
794+
if opts.repr_mode in ("deferred", "anywidget"):
793795
return formatter.repr_query_job(self._compute_dry_run())
794796

795797
# TODO(swast): pass max_columns and get the true column count back. Maybe
@@ -815,7 +817,6 @@ def __repr__(self) -> str:
815817
repr_string = pandas_df.to_string(**to_string_kwargs)
816818

817819
# Modify the end of the string to reflect count.
818-
# Remove pandas' default row/column summary to add our own.
819820
lines = repr_string.split("\n")
820821
pattern = re.compile("\\[[0-9]+ rows x [0-9]+ columns\\]")
821822
if pattern.match(lines[-1]):

0 commit comments

Comments
 (0)