daru

https://github.com/sciruby/daru

Ruby

Data Analysis in RUby

Daru::DataFrame#verify

Test each row with one or more tests. Each test is a Proc with the form
*Proc.new {|row| row[:age] > 0}*

The function returns an array with all errors.

FIXME: description here is too sparse. As far as I can get,
it should tell something about that each test is [descr, fields, block],
and that first value may be column name to output. - zverok, 2016-05-18

Source | Google | Stack overflow

Edit

git clone [email protected]:sciruby/daru.git

cd daru

open lib/daru/dataframe.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Daru--DataFrame-verify-for-pr


# Commit to git

git add lib/daru/dataframe.rbgit commit -m "better docs for Daru::DataFrame#verify"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Daru--DataFrame-verify-for-pr

hub pull-request


# Celebrate!