Sha256: f105d6f8ea85abca45905cd4875bde3f6099bf53cec3807189817f26fa452f69

Contents?: true

Size: 593 Bytes

Versions: 5

Compression:

Stored size: 593 Bytes

Contents

<thead>
  <% if @vectors.is_a? MultiIndex %>
    <% Daru::IRuby::Helpers.tuples_with_colspans(@vectors).each_with_index do |tuple, idx| %>
      <tr>
        <% if idx.zero? %>
          <th colspan="<%= index.width %>" rowspan="<%= @vectors.width %>"></th>
        <% end %>
        <% tuple.each do |idx, span| %>
          <th colspan="<%= span %>"><%= idx %></th>
        <% end %>
      </tr>
    <% end %>
  <% else %>
    <tr>
      <th colspan="<%= index.width %>"></th>
      <% @vectors.each do |vector| %>
        <th><%=vector%></th>
      <% end %>
    </tr>
  <% end %>
</thead>

Version data entries

5 entries across 5 versions & 1 rubygems

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