Sha256: 1a80b813c4dbc89f969187f91b5adaf09e8402403391ddb7b84bdb1e582f5043

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 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 rowspan="<%= @vectors.width %>"></th>
        <% end %>
        <% tuple.each do |idx, span| %>
          <th colspan="<%= span %>"><%= idx %></th>
        <% end %>
      </tr>
    <% end %>
  <% else %>
    <tr>
      <th></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_thead.html.erb
daru-0.2.2 lib/daru/iruby/templates/dataframe_thead.html.erb
daru-0.2.1 lib/daru/iruby/templates/dataframe_thead.html.erb
daru-0.2.0 lib/daru/iruby/templates/dataframe_thead.html.erb
daru-0.1.6 lib/daru/iruby/templates/dataframe_thead.html.erb