daru_lite 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.md +30 -0
- data/README.md +1 -1
- data/lib/daru_lite/data_frame/convertible.rb +0 -33
- data/lib/daru_lite/data_frame/fetchable.rb +1 -1
- data/lib/daru_lite/data_frame/i_o_able.rb +0 -102
- data/lib/daru_lite/data_frame/indexable.rb +24 -0
- data/lib/daru_lite/data_frame/relabelable.rb +125 -0
- data/lib/daru_lite/data_frame/sortable.rb +27 -1
- data/lib/daru_lite/dataframe.rb +3 -4
- data/lib/daru_lite/index/categorical_index.rb +8 -0
- data/lib/daru_lite/index/index.rb +0 -1
- data/lib/daru_lite/index/multi_index.rb +8 -5
- data/lib/daru_lite/io/io.rb +0 -195
- data/lib/daru_lite/maths/arithmetic/vector.rb +31 -0
- data/lib/daru_lite/maths/statistics/vector/descriptive.rb +134 -0
- data/lib/daru_lite/maths/statistics/vector/dispersion.rb +120 -0
- data/lib/daru_lite/maths/statistics/vector/extrema.rb +217 -0
- data/lib/daru_lite/maths/statistics/vector/normalization.rb +86 -0
- data/lib/daru_lite/maths/statistics/vector/percentile.rb +64 -0
- data/lib/daru_lite/maths/statistics/vector/sampling.rb +56 -0
- data/lib/daru_lite/maths/statistics/vector/time_series.rb +350 -0
- data/lib/daru_lite/maths/statistics/vector.rb +16 -994
- data/lib/daru_lite/vector/convertible.rb +0 -32
- data/lib/daru_lite/vector.rb +0 -9
- data/lib/daru_lite/version.rb +1 -1
- data/lib/daru_lite.rb +0 -30
- metadata +9 -75
- data/lib/daru_lite/date_time/index.rb +0 -570
- data/lib/daru_lite/date_time/offsets.rb +0 -397
- data/lib/daru_lite/extensions/which_dsl.rb +0 -53
- data/lib/daru_lite/io/sql_data_source.rb +0 -80
- data/lib/daru_lite/iruby/helpers.rb +0 -38
- data/lib/daru_lite/iruby/templates/dataframe.html.erb +0 -5
- data/lib/daru_lite/iruby/templates/dataframe_mi.html.erb +0 -5
- data/lib/daru_lite/iruby/templates/dataframe_mi_tbody.html.erb +0 -35
- data/lib/daru_lite/iruby/templates/dataframe_mi_thead.html.erb +0 -21
- data/lib/daru_lite/iruby/templates/dataframe_tbody.html.erb +0 -28
- data/lib/daru_lite/iruby/templates/dataframe_thead.html.erb +0 -21
- data/lib/daru_lite/iruby/templates/multi_index.html.erb +0 -12
- data/lib/daru_lite/iruby/templates/vector.html.erb +0 -5
- data/lib/daru_lite/iruby/templates/vector_mi.html.erb +0 -5
- data/lib/daru_lite/iruby/templates/vector_mi_tbody.html.erb +0 -26
- data/lib/daru_lite/iruby/templates/vector_mi_thead.html.erb +0 -8
- data/lib/daru_lite/iruby/templates/vector_tbody.html.erb +0 -17
- data/lib/daru_lite/iruby/templates/vector_thead.html.erb +0 -8
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<tbody>
|
|
2
|
-
<% DaruLite::IRuby::Helpers.tuples_with_rowspans(@index).first(threshold).zip(to_a).each do |tuple, value| %>
|
|
3
|
-
<tr>
|
|
4
|
-
<% tuple.each do |idx, span| %>
|
|
5
|
-
<th rowspan="<%= span %>"><%= idx %></th>
|
|
6
|
-
<% end %>
|
|
7
|
-
<td><%= value %></td>
|
|
8
|
-
</tr>
|
|
9
|
-
<% end %>
|
|
10
|
-
|
|
11
|
-
<% if size > threshold %>
|
|
12
|
-
<% last_index = @index.to_a.last %>
|
|
13
|
-
<tr>
|
|
14
|
-
<% last_index.size.times do %>
|
|
15
|
-
<th>...</th>
|
|
16
|
-
<% end %>
|
|
17
|
-
<td>...</td>
|
|
18
|
-
</tr>
|
|
19
|
-
<tr>
|
|
20
|
-
<% last_index.each do |idx| %>
|
|
21
|
-
<th><%= idx %></td>
|
|
22
|
-
<% end %>
|
|
23
|
-
<td><%= self[last_index] %></td>
|
|
24
|
-
</tr>
|
|
25
|
-
<% end %>
|
|
26
|
-
</tbody>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<tbody>
|
|
2
|
-
<% @index.each_with_index.first(threshold).each do |index, pos| %>
|
|
3
|
-
<tr>
|
|
4
|
-
<td><%= index %></td>
|
|
5
|
-
<td><%= self.at(pos) %></td>
|
|
6
|
-
</tr>
|
|
7
|
-
<% end %>
|
|
8
|
-
|
|
9
|
-
<% if size > threshold %>
|
|
10
|
-
<% last_index = @index.size-1 %>
|
|
11
|
-
<tr><td>...</td><td>...</td></tr>
|
|
12
|
-
<tr>
|
|
13
|
-
<td><%= last_index %></td>
|
|
14
|
-
<td><%= self.at last_index %></td>
|
|
15
|
-
</tr>
|
|
16
|
-
<% end %>
|
|
17
|
-
</tbody>
|