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 @@ -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 ]):
You can’t perform that action at this time.
0 commit comments