Skip to content

Commit 2097f2d

Browse files
committed
DOC: show a more informative query performance plot
Corrects the plot to show a larger range of numbers of rows to see where the Python and NumExpr lines intersect.
1 parent 56b0eee commit 2097f2d

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

bench/bench_with_subset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ def plot_perf(df, engines, title, filename=None):
112112

113113
plot_perf(ev[ev.size <= 50000], engines, 'DataFrame.eval()',
114114
filename=join('eval-perf-small.png'))
115-
plot_perf(qu[qu.size <= 100000], engines, 'DataFrame.query()',
115+
plot_perf(qu[qu.size <= 500000], engines, 'DataFrame.query()',
116116
filename=join('query-perf-small.png'))
-3.84 KB
Loading

doc/source/indexing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ large frames
969969
.. note::
970970

971971
You will only see the performance benefits of using the ``numexpr`` engine
972-
with ``DataFrame.query()`` if your frame has more than approximately 50,000
972+
with ``DataFrame.query()`` if your frame has more than approximately 200,000
973973
rows
974974

975975
.. image:: _static/query-perf-small.png

0 commit comments

Comments
 (0)