Module ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad 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 Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad Str NameLoad 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 Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num Assign NameStore Call NameLoad Str NameLoad keyword Str keyword Call NameLoad Num Num Num 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 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 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 Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Call NameLoad Num Num Num Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad Str NameLoad keyword Str
N/A vbench.benchmark Benchmark datetime datetime N/A SECTION Index / MultiIndex objects N/A common_setup from .pandas_vb_common import *
 N/A setup N/A common_setup 
rng = DatetimeIndex(start='1/1/2000', periods=10000, freq=datetools.Minute())
if rng.dtype == object:
    rng = rng.view(Index)
else:
    rng = rng.asobject
rng2 = rng[:-1]
 N/A index_datetime_intersection N/A Benchmark rng.intersection(rng2) setup N/A index_datetime_union N/A Benchmark rng.union(rng2) setup N/A setup N/A common_setup 
rng = date_range('1/1/2000', periods=10000, freq='T')
rng2 = rng[:-1]
 N/A datetime_index_intersection N/A Benchmark rng.intersection(rng2) setup start_date N/A datetime 2013 9 27 N/A datetime_index_union N/A Benchmark rng.union(rng2) setup start_date N/A datetime 2013 9 27 N/A setup N/A common_setup 
N = 1000000
options = np.arange(N)

left = Index(options.take(np.random.permutation(N)[:N // 2]))
right = Index(options.take(np.random.permutation(N)[:N // 2]))
 N/A index_int64_union N/A Benchmark left.union(right) setup start_date N/A datetime 2011 1 1 N/A index_int64_intersection N/A Benchmark left.intersection(right) setup start_date N/A datetime 2011 1 1 N/A setup N/A common_setup 
idx = tm.makeStringIndex(1000000)

mask = np.arange(1000000) % 3 == 0
series_mask = Series(mask)
 N/A index_str_slice_indexer_basic N/A Benchmark idx[:-1] setup N/A index_str_slice_indexer_even N/A Benchmark idx[::2] setup N/A index_str_boolean_indexer N/A Benchmark idx[mask] setup N/A index_str_boolean_series_indexer N/A Benchmark idx[series_mask] setup N/A setup N/A common_setup 
baseidx = np.arange(1e6)
 N/A index_float64_construct N/A Benchmark Index(baseidx) setup name index_float64_construct start_date N/A datetime 2014 4 13 N/A setup N/A common_setup 
idx = tm.makeFloatIndex(1000000)

mask = np.arange(idx.size) % 3 == 0
series_mask = Series(mask)
 N/A index_float64_get N/A Benchmark idx[1] setup name index_float64_get start_date N/A datetime 2014 4 13 N/A index_float64_slice_indexer_basic N/A Benchmark idx[:-1] setup name index_float64_slice_indexer_basic start_date N/A datetime 2014 4 13 N/A index_float64_slice_indexer_even N/A Benchmark idx[::2] setup name index_float64_slice_indexer_even start_date N/A datetime 2014 4 13 N/A index_float64_boolean_indexer N/A Benchmark idx[mask] setup name index_float64_boolean_indexer start_date N/A datetime 2014 4 13 N/A index_float64_boolean_series_indexer N/A Benchmark idx[series_mask] setup name index_float64_boolean_series_indexer start_date N/A datetime 2014 4 13 N/A index_float64_mul N/A Benchmark idx * 2 setup name index_float64_mul start_date N/A datetime 2014 4 13 N/A index_float64_div N/A Benchmark idx / 2 setup name index_float64_div start_date N/A datetime 2014 4 13 N/A setup N/A common_setup 
iterables = [tm.makeStringIndex(10000), range(20)]
 N/A multiindex_from_product N/A Benchmark MultiIndex.from_product(iterables) setup name multiindex_from_product start_date N/A datetime 2014 6 30 N/A setup N/A common_setup 
level1 = range(1000)
level2 = date_range(start='1/1/2012', periods=100)
mi = MultiIndex.from_product([level1, level2])
 N/A multiindex_with_datetime_level_full N/A Benchmark mi.copy().values setup name multiindex_with_datetime_level_full start_date N/A datetime 2014 10 11 N/A multiindex_with_datetime_level_sliced N/A Benchmark mi[:10].values setup name multiindex_with_datetime_level_sliced start_date N/A datetime 2014 10 11 N/A setup N/A common_setup 
n, k = 200, 5000
levels = [np.arange(n), tm.makeStringIndex(n).values, 1000 + np.arange(n)]
labels = [np.random.choice(n, k * n) for lev in levels]
mi = MultiIndex(levels=levels, labels=labels)
 N/A multiindex_duplicated N/A Benchmark mi.duplicated() setup name multiindex_duplicated N/A setup N/A common_setup 
dr = pd.date_range('20000101', freq='D', periods=100000)
 N/A datetime_index_repr N/A Benchmark dr._is_dates_only setup start_date N/A datetime 2012 1 11 N/A setup N/A common_setup 
n = 3 * 5 * 7 * 11 * (1 << 10)
low, high = - 1 << 12, 1 << 12
f = lambda k: np.repeat(np.random.randint(low, high, n // k), k)

i = np.random.permutation(n)
mi = MultiIndex.from_arrays([f(11), f(7), f(5), f(3), f(1)])[i]
 N/A multiindex_sortlevel_int64 N/A Benchmark mi.sortlevel() setup name multiindex_sortlevel_int64