Skip to content

Commit 84fec4e

Browse files
committed
Revert unncessary change
1 parent 79fc469 commit 84fec4e

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
@@ -783,7 +783,9 @@ def __repr__(self) -> str:
783783

784784
opts = bigframes.options.display
785785
max_results = opts.max_rows
786-
if opts.repr_mode == "deferred":
786+
# anywdiget mode uses the same display logic as the "deferred" mode
787+
# for faster execution
788+
if opts.repr_mode in ("deferred", "anywidget"):
787789
return formatter.repr_query_job(self._compute_dry_run())
788790

789791
# TODO(swast): pass max_columns and get the true column count back. Maybe
@@ -809,7 +811,6 @@ def __repr__(self) -> str:
809811
repr_string = pandas_df.to_string(**to_string_kwargs)
810812

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

0 commit comments

Comments
 (0)