code: def to_html(self, index=False, escape=False, header=True,
              collapse_table=True, class_outer="table_outer", **kargs):
          
          _buffer = {}
          for k, v in self.pd_options.items():
              # save the current option
              _buffer[k] = pd.get_option(k)
              # set with user value
              pd.set_option(k, v)
  
          # class sortable is to use the sorttable javascript
          # note that the class has one t and the javascript library has 2
          # as in the original version of sorttable.js
          table = self.df.to_html(escape=escape, header=header, index=index,
                  classes='sortable', **kargs)
  
          # get back to default options
          for k, v in _buffer.items():
              pd.set_option(k, v)
  
          # We wrap the table in a dedicated class/div nammed table_scroller
          # that users must define.
          return '<div class="%s">' % class_outer + table+"</div>"
docs: Return HTML version of the table
  
          This is a wrapper of the to_html method of the pandas dataframe.
  
          :param bool index: do not include the index
          :param bool escape: do not escape special characters
          :param bool header: include header
          :param bool collapse_table: long tables are shorten with a scroll bar
          :param kargs: any parameter accepted by
              :meth:`pandas.DataFrame.to_html`