daru
daru copied to clipboard
Data Analysis in RUby
Data like `dt = Daru::DateTimeIndex.new(['2021-09-01','2021-09-02'])` PR fix:
Seeing below error when using from_csv after upgrading ruby to 3.0.3 Failure/Error: Daru::DataFrame.from_csv( mock_data, index: index, converters: ->(c) { c.to_d unless c.nil? }, headers: true, header_converters: header_converters ) ArgumentError: wrong...
We need it across all the repos of the SciRuby https://github.com/SciRuby/daru-view/issues/165
`matrix` no longer be a standard library.
Recently I stumbled on problem with speed when using daru, and found that a way to speed things up was to do more work in database - namely group and...
When group_by applied on sorted DataFrame get_group will return wrong entries in DataFrame ```ruby df=Daru::DataFrame.new([ 10.times.collect{|i| i}, 10.times.collect{|i| "b"}, 10.times.collect{|i| i%2 == 0 ? "c" : "d"}, ], order: [:a,:b,:c]...
Hi, I noticed the pivot_table method removes group_by columns and uses them as the index in the newly created DF. Is there a way to do the pivot table and...
Thank you for this neat collection of learning resources, also to @v0dro :-) I noticed these few broken URLs and found their new ones on https://v0dro.in/.
``` /Users/tom/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/daru-0.2.1/lib/daru/maths/arithmetic/vector.rb:95:in `sort': comparison of Symbol with String failed (ArgumentError) from /Users/tom/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/daru-0.2.1/lib/daru/maths/arithmetic/vector.rb:95:in `v2v_binary' from /Users/tom/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/daru-0.2.1/lib/daru/maths/arithmetic/vector.rb:82:in `binary_op' from /Users/tom/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/daru-0.2.1/lib/daru/maths/arithmetic/vector.rb:18:in `/' ``` to reproduce : ``` first_vector = Daru::Vector.new([1, 2, 3], index:...
- added a utility method to fall back to string-sort in case sort raise error - this method called in v2v_binary method - impending test removed and passes