SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.03k stars 139 forks source link

html table code of DataFrame and Vector are modified #366

Closed Shekharrajak closed 7 years ago

Shekharrajak commented 7 years ago

It will be better if we use thead and tbody tag in the html table code of the DataFrame and Vector . Also I have defined to_html_thead and to_html_tbody method to get the header and body part of the html table. These things will be helpful for daru-view table ( generate table using DataTables gem ).

See how I am using this PR branch in datatables example to generate table code with pagination, search and other features. . Actually DataTables gem will check the thead and tbody of the table.

v0dro commented 7 years ago

@athityakumar use this in daru-io.

Shekharrajak commented 7 years ago

Few things that can be useful in future (TODO):