Sha256: daca0c4ee134db9732e8762ff0358e511f857b4cd06c4f7fbdb6a84f5d4db214

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

require_relative '_base'

n = 40_000
keys = (1..(n)).to_a
base_data = { idx: 1.upto(n).to_a, keys: 1.upto(n).map { |v| keys[Random.rand(n)]}}
lookup_hash = keys.map { |k| [k, k * 100]}.to_h

base_data_df = DaruLite::DataFrame.new(base_data)
lookup_df = DaruLite::DataFrame.new(keys: lookup_hash.keys, values: lookup_hash.values)

__profile__ do
  base_data_df.join(lookup_df, on: [:keys], how: :inner)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
daru_lite-0.1.3 profile/joining.rb
daru_lite-0.1.2 profile/joining.rb
daru_lite-0.1.1 profile/joining.rb
daru_lite-0.1 profile/joining.rb