require 'daru' df = Daru::DataFrame.new({b: [11,12,13,14,15], a: [1,2,3,4,5], c: [11,22,33,44,55]}, order: [:a, :b, :c], index: [:one, :two, :three, :four, :five]) df.to_html a = Daru::Vector.new([1,2,3,4,5]) a.to_html a.to_html_thead a.to_html_tbody tuples = [ [:a, :one, :foo], [:a, :two, :bar], [:b, :one, :bar], [:b, :two, :baz] ] multi_index = Daru::MultiIndex.from_tuples(tuples) vec_mi = Daru::Vector.new [1,2,3,4], name: :mi, index: multi_index vec_mi.to_html vec_mi.to_html_tbody vec_mi.to_html_thead