daru
https://github.com/sciruby/daru
Ruby
Data Analysis in RUby
Daru::DataFrame#each
Iterate over each row or vector of the DataFrame. Specify axis by passing :vector or :row as the argument. Default to :vector. == Description `#each` works exactly like Array#each. The default mode for `each` is to iterate over the columns of the DataFrame. To iterate over rows you must pass the axis, i.e `:row` as an argument. == Arguments * +axis+ - The axis to iterate over. Can be :vector (or :column) or :row. Default to :vector.
Edit
git clone [email protected]:sciruby/daru.git
cd daru
open lib/daru/dataframe.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Daru--DataFrame-each-for-pr
# Commit to gitgit add lib/daru/dataframe.rbgit commit -m "better docs for Daru::DataFrame#each"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Daru--DataFrame-each-for-pr
hub pull-request
# Celebrate!