#Use the HTML table demo - and its libraries - as the crib !wget http://nicolas.kruchten.com/pivottable/dist/pivot.js -P pivotTable !wget http://nicolas.kruchten.com/pivottable/dist/pivot.css -P pivotTable !wget http://nicolas.kruchten.com/pivottable/examples/ext/jquery-1.8.3.min.js -P pivotTable !wget http://nicolas.kruchten.com/pivottable/examples/ext/jquery-ui-1.9.2.custom.min.js -P pivotTable html_base=''' Pivot Demo



{table} ''' def table_to_html(df,fn='tmp/tmp.html',path='..'): f=open(fn,'w',encoding="utf-8") html=html_base.format(path=path, table=df.to_html(index=False).replace('