daru
https://github.com/sciruby/daru
Ruby
Data Analysis in RUby
Daru::DataFrame#collect
Iterate over a row or vector and return results in a Daru::Vector. Specify axis with :vector or :row. Default to :vector. == Description The #collect iterator works similar to #map, the only difference being that it returns a Daru::Vector comprising of the results of each block run. The resultant Vector has the same index as that of the axis over which collect has iterated. It also accepts the optional axis 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-collect-for-pr
# Commit to gitgit add lib/daru/dataframe.rbgit commit -m "better docs for Daru::DataFrame#collect"
# 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-collect-for-pr
hub pull-request
# Celebrate!