code: def StatsTable(
      df: pd.DataFrame, title: str = "", classes: str = ""
  ) -> Component:
      table = html.Table(
          html.Tbody(
              [
                  html.Tr(
                      [html.Th(ix)]
                      + [
                          html.Td(v, className="text-right")
                          for v in val
                      ]
                  )
                  for ix, val in df.iterrows()
              ]
          ),
          className=f"table table-condensed stats {classes}",
      )
      head = [html.H4(title)] if title else []
      return html.Div(head + [table])
  
imports: from typing import Optional
  import pandas
  from tslumen.misc import import_error_class, import_error_module
label_desc: Use image node_id 3 for calling a global function with example usage: StatsTable(df, title, classes) and returns: html