daru
daru copied to clipboard
Data Analysis in RUby
```ruby require 'daru' v = Daru::Vector.new [1,2,3,nil,nil] v.count nil # => 3 v.count 1 # => 1 v.count(1){ |i| i == nil} # => 2 v.count_values nil # => 2...
[enhancement / question] It is strange that the `delete_rows` method is not implemented in` Daru::DataFrame`. Anything I’m missing? Please let me know if you know how to delete multiple rows.
DataFrame assignments behave in a surprising way then numerical indexes are used: instead of the vector replacing the old one, they are added to the dataframe. This is in contrast...
Hi working with Dataframe and DateIndex as main index for it. When I try to convert a vector to a hash with .to_h I am getting the following error: ```...
I want to resample a vector containing timeseries data into one with discrete time intervals. I'm having trouble figuring out if this is possible in daru. For example if I...
When I create a plot & export it to HTML I get what seems like some random number. **Example**: ```ruby df.plot(type: :bar).export_html # 2152 ``` I think it may be...
Hi, I use dataframes that are typically indexed from 0 to N with no special need to index with non-numeric labels. So, when I `filter` a dataframe, the index then...
Hi, When I use `Vector#rename` I expect that the vectors method would show the new vector name but it doesn't. ~~~ruby [1] pry(main)> ws_yld_per_wafer_stacked_bins.vectors.to_a.grep(/^wafer_num/) => [:wafer_number] [2] pry(main)> ws_yld_per_wafer_stacked_bins[:wafer_number].rename(:wafer_num) =>...
Hi, Daru community. I was trying to find a simple function how DataFrame can be summarized using customisable aggregation function for each new Vector, but can't find any flexible solution....
Hi, I see that the dataframe[ can do a rolling median](https://www.rubydoc.info/gems/daru/0.1.1/Daru/Maths/Statistics/DataFrame#rolling_median-instance_method) but what about performing the median calculation on a group of columns? thx