Sha256: 0bd40c5d4b4fca1ed60c9355ee27355d6d51b991ac15e3d05f059ab156736f3d

Contents?: true

Size: 832 Bytes

Versions: 5

Compression:

Stored size: 832 Bytes

Contents

<tbody>
  <% Daru::IRuby::Helpers.tuples_with_rowspans(@index).first(threshold).zip(@index.to_a).each do |tuple, index| %>
    <tr>
      <% tuple.each do |idx, span| %>
        <th rowspan="<%= span %>"><%= idx %></th>
      <% end %>
      <% row[index].each do |element| %>
        <td><%= element.to_s %></td>
      <% end %>
    </tr>
  <% end %>

  <% if nrows > threshold %>
    <tr>
      <% index.width.times do %>
        <th>...</th>
      <% end %>
      <% @vectors.size.times do %>
        <td>...</td>
      <% end %>
    </tr>

    <% last_index = @index.to_a.last
       last_row = row[last_index] %>

    <tr>
      <% last_index.each do |idx| %>
        <th><%= idx %></td>
      <% end %>
      <% last_row.each do |element| %>
        <td><%= element.to_s %></td>
      <% end %>
    </tr>
  <% end %>
</tbody>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
daru-0.3 lib/daru/iruby/templates/dataframe_mi_tbody.html.erb
daru-0.2.2 lib/daru/iruby/templates/dataframe_mi_tbody.html.erb
daru-0.2.1 lib/daru/iruby/templates/dataframe_mi_tbody.html.erb
daru-0.2.0 lib/daru/iruby/templates/dataframe_mi_tbody.html.erb
daru-0.1.6 lib/daru/iruby/templates/dataframe_mi_tbody.html.erb