Exemplo n.º 1
0
def lookup_khash(values):
    table = sbx.PyObjectHashTable(len(values))
    table.map_locations(values)
    locs = table.lookup_locations(values)
    # elapsed = _timeit(lambda: table.lookup_locations2(values))
    return table
Exemplo n.º 2
0
def g():
    table = sbx.PyObjectHashTable(len(df))
    ret = table.factorize(df['A'])
    return ret
Exemplo n.º 3
0
 def f():
     table = sbx.PyObjectHashTable(len(arr))
     table.map_locations(arr)