daru
https://github.com/sciruby/daru
Ruby
Data Analysis in RUby
Daru::DataFrame#recast
Change dtypes of vectors by supplying a hash of :vector_name => :new_dtype
== Usage
df = Daru::DataFrame.new({a: [1,2,3], b: [1,2,3], c: [1,2,3]})
df.recast a: :nmatrix, c: :nmatrixEdit
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-recast-for-pr
# Commit to gitgit add lib/daru/dataframe.rbgit commit -m "better docs for Daru::DataFrame#recast"
# 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-recast-for-pr
hub pull-request
# Celebrate!