Sha256: d05ff729046ce50b30eed8479254f2b294963fb3495490db8872728a2c0eb8a7

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 Bytes

Contents

require_relative '_base'

df = DaruLite::DataFrame.new({
  a: [1,2,3,4,5,6]*1000,
  b: ['a','b','c','d','e','f']*1000,
  c: [11,22,33,44,55,66]*1000
}, index: (1..6000).to_a.shuffle)

__profile__ do
  df.filter(:row) do |r|
    r[:a] == 2 or r[:c] == 55
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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