Skip to content

Commit cd3c25b

Browse files
committed
TST: run benchmark for repr wide frame with/without interactive mode
1 parent 6e32e25 commit cd3c25b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

vb_suite/frame_methods.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,17 @@ def f(K=500):
150150

151151
##
152152
setup = common_setup + """
153+
from pandas.core.config import option_context
154+
155+
def interactive_repr(frame):
156+
with option_context('mode.sim_interactive', True):
157+
repr(frame)
158+
153159
df = pandas.DataFrame(np.random.randn(10,10000))
154160
"""
155-
161+
156162
frame_wide_repr = Benchmark('repr(df)', setup,
157-
start_date=datetime(2012, 8, 1))
163+
start_date=datetime(2012, 8, 1))
164+
165+
frame_wide_repr_interactive = Benchmark('interactive_repr(df)', setup,
166+
start_date=datetime(2012, 8, 1))

0 commit comments

Comments
 (0)