code: def to_html(self):
      summary_df = self.model.summary
  
      decimals = self.decimals
      if self.columns is None:
          columns = summary_df.columns
      else:
          columns = summary_df.columns.intersection(self.columns)
  
      headers = self.headers.copy()
      headers.insert(
          0, ("model", "lifelines." + self.model._class_name)
      )
  
      header_df = pd.DataFrame.from_records(headers).set_index(0)
  
      header_html = header_df.to_html(
          header=False, notebook=True, index_names=False
      )
  
      summary_html = summary_df[columns].to_html(
          col_space=12,
          index_names=False,
          float_format=utils.format_floats(decimals),
          formatters={
              **{
                  c: utils.format_exp_floats(decimals)
                  for c in columns
                  if "exp(" in c
              },
              **{"p": utils.format_p_value(decimals)},
          },
      )
  
      if self.footers:
          footer_df = pd.DataFrame.from_records(self.footers).set_index(
              0
          )
          footer_html = "<br>" + footer_df.to_html(
              header=False, notebook=True, index_names=False
          )
      else:
          footer_html = ""
      return header_html + summary_html + footer_html
  
file_path: lifelines/lifelines/utils/printer.py
imports: from typing import *
  import numpy
  from lifelines import utils
  import pandas
label_desc: Use image node_id 8 for calling the Printer obj's underlying member method code with example usage: obj.to_html() and returns: unknown