Module ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Str keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num
N/A vbench.benchmark Benchmark datetime datetime N/A common_setup from .pandas_vb_common import *
 N/A SECTION Binary ops N/A setup N/A common_setup 
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
 N/A frame_add N/A Benchmark df + df2 setup name frame_add start_date N/A datetime 2012 1 1 N/A setup N/A common_setup 
import pandas.computation.expressions as expr
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
expr.set_numexpr_threads(1)
 N/A frame_add_st N/A Benchmark df + df2 setup name frame_add_st cleanup expr.set_numexpr_threads() start_date N/A datetime 2013 2 26 N/A setup N/A common_setup 
import pandas.computation.expressions as expr
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
expr.set_use_numexpr(False)
 N/A frame_add_no_ne N/A Benchmark df + df2 setup name frame_add_no_ne cleanup expr.set_use_numexpr(True) start_date N/A datetime 2013 2 26 N/A setup N/A common_setup 
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
 N/A frame_mult N/A Benchmark df * df2 setup name frame_mult start_date N/A datetime 2012 1 1 N/A setup N/A common_setup 
import pandas.computation.expressions as expr
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
expr.set_numexpr_threads(1)
 N/A frame_mult_st N/A Benchmark df * df2 setup name frame_mult_st cleanup expr.set_numexpr_threads() start_date N/A datetime 2013 2 26 N/A setup N/A common_setup 
import pandas.computation.expressions as expr
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
expr.set_use_numexpr(False)
 N/A frame_mult_no_ne N/A Benchmark df * df2 setup name frame_mult_no_ne cleanup expr.set_use_numexpr(True) start_date N/A datetime 2013 2 26 N/A setup N/A common_setup 
df  = DataFrame(np.random.randn(1000, 1000))
 N/A frame_float_div_by_zero N/A Benchmark df / 0 setup name frame_float_div_by_zero N/A setup N/A common_setup 
df  = DataFrame(np.random.randn(1000, 1000))
 N/A frame_float_floor_by_zero N/A Benchmark df // 0 setup name frame_float_floor_by_zero N/A setup N/A common_setup 
df  = DataFrame(np.random.random_integers(np.iinfo(np.int16).min, np.iinfo(np.int16).max, size=(1000, 1000)))
 N/A frame_int_div_by_zero N/A Benchmark df / 0 setup name frame_int_div_by_zero N/A setup N/A common_setup 
df  = DataFrame(np.random.randn(1000, 1000))
df2 = DataFrame(np.random.randn(1000, 1000))
 N/A frame_float_div N/A Benchmark df // df2 setup name frame_float_div N/A setup N/A common_setup 
df  = DataFrame(np.random.randn(1000, 1000))
df2 = DataFrame(np.random.randn(1000, 1000))
 N/A frame_float_mod N/A Benchmark df / df2 setup name frame_float_mod N/A setup N/A common_setup 
df  = DataFrame(np.random.random_integers(np.iinfo(np.int16).min, np.iinfo(np.int16).max, size=(1000, 1000)))
df2 = DataFrame(np.random.random_integers(np.iinfo(np.int16).min, np.iinfo(np.int16).max, size=(1000, 1000)))
 N/A frame_int_mod N/A Benchmark df / df2 setup name frame_int_mod N/A setup N/A common_setup 
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
 N/A frame_multi_and N/A Benchmark df[(df>0) & (df2>0)] setup name frame_multi_and start_date N/A datetime 2012 1 1 N/A setup N/A common_setup 
import pandas.computation.expressions as expr
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
expr.set_numexpr_threads(1)
 N/A frame_multi_and_st N/A Benchmark df[(df>0) & (df2>0)] setup name frame_multi_and_st cleanup expr.set_numexpr_threads() start_date N/A datetime 2013 2 26 N/A setup N/A common_setup 
import pandas.computation.expressions as expr
df  = DataFrame(np.random.randn(20000, 100))
df2 = DataFrame(np.random.randn(20000, 100))
expr.set_use_numexpr(False)
 N/A frame_multi_and_no_ne N/A Benchmark df[(df>0) & (df2>0)] setup name frame_multi_and_no_ne cleanup expr.set_use_numexpr(True) start_date N/A datetime 2013 2 26 N/A setup N/A common_setup 
N = 1000000
halfway = N // 2 - 1
s = Series(date_range('20010101', periods=N, freq='T'))
ts = s[halfway]
 N/A timestamp_series_compare N/A Benchmark ts >= s setup start_date N/A datetime 2013 9 27 N/A series_timestamp_compare N/A Benchmark s <= ts setup start_date N/A datetime 2012 2 21 N/A setup N/A common_setup 
N = 1000000
s = Series(date_range('20010101', periods=N, freq='s'))
 N/A timestamp_ops_diff1 N/A Benchmark s.diff() setup start_date N/A datetime 2013 1 1 N/A timestamp_ops_diff2 N/A Benchmark s-s.shift() setup start_date N/A datetime 2013 1 1 N/A setup N/A common_setup 
N = 10000
halfway = N // 2 - 1
s = Series(date_range('20010101', periods=N, freq='T', tz='US/Eastern'))
ts = s[halfway]
 N/A timestamp_tz_series_compare N/A Benchmark ts >= s setup start_date N/A datetime 2013 9 27 N/A series_timestamp_tz_compare N/A Benchmark s <= ts setup start_date N/A datetime 2012 2 21 N/A setup N/A common_setup 
N = 10000
s = Series(date_range('20010101', periods=N, freq='s', tz='US/Eastern'))
 N/A timestamp_tz_ops_diff1 N/A Benchmark s.diff() setup start_date N/A datetime 2013 1 1 N/A timestamp_tz_ops_diff2 N/A Benchmark s-s.shift() setup start_date N/A datetime 2013 1 1