Sha256: d17c1f56ec6f2242a64a3ca11f066a1f058bdec5a14b3085ad31a7ef738143c5

Contents?: true

Size: 505 Bytes

Versions: 8

Compression:

Stored size: 505 Bytes

Contents

contexts:
  - gems:
      red_amber: 0.1.8
  - gems:
      red_amber: 0.2.2
  - name: HEAD
    prelude: |
      $LOAD_PATH.unshift(File.expand_path('lib'))
      require 'red_amber'

prelude: |
  require 'datasets-arrow'
  require 'red_amber'

  penguins = RedAmber::DataFrame.new(Datasets::Penguins.new.to_arrow)

  def remove_nil(penguins)
    penguins.remove { vectors.map(&:is_nil).reduce(&:|) }
  end

benchmark:
  'Remove and reduce': remove_nil(penguins)
  'remove_nil method': penguins.remove_nil

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
red_amber-0.5.2 benchmark/drop_nil.yml
red_amber-0.5.1 benchmark/drop_nil.yml
red_amber-0.5.0 benchmark/drop_nil.yml
red_amber-0.4.2 benchmark/drop_nil.yml
red_amber-0.4.1 benchmark/drop_nil.yml
red_amber-0.4.0 benchmark/drop_nil.yml
red_amber-0.3.0 benchmark/drop_nil.yml
red_amber-0.2.3 benchmark/drop_nil.yml