Sha256: 9607e21ea90026f63e7fccb0d4f97b9345635b5c7950baadd3b3f6eeb3176d7c
Contents?: true
Size: 398 Bytes
Versions: 8
Compression:
Stored size: 398 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 = Daru::DataFrame.new(base_data) lookup_df = Daru::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
8 entries across 8 versions & 1 rubygems