Skip to content

Commit 76eb112

Browse files
author
y-p
committed
VB: add to_html vbench
1 parent f95a7bf commit 76eb112

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

vb_suite/frame_methods.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,20 @@ def f(x):
145145
frame_to_string_floats = Benchmark('df.to_string()', setup,
146146
start_date=datetime(2010, 6, 1))
147147

148+
#----------------------------------------------------------------------
149+
# to_html
150+
151+
setup = common_setup + """
152+
nrows=500
153+
df = DataFrame(randn(nrows, 10))
154+
df[0]=period_range("2000","2010",nrows)
155+
df[1]=range(nrows)
156+
157+
"""
158+
159+
frame_to_html_mixed = Benchmark('df.to_html()', setup,
160+
start_date=datetime(2010, 6, 1))
161+
148162
# insert many columns
149163

150164
setup = common_setup + """

0 commit comments

Comments
 (0)