File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ]):
You can’t perform that action at this time.
0 commit comments