code: def _GenerateStaticsTable(self, title='Current Statistics'):
          
          if len(self.__categories.keys()) < 1:
              return ''
          d = self.__categories
          keys = sorted(d.keys())
          cats = ', '.join(['"%s"' % k for k in keys])
          vals = ', '.join(['%d' % d[k] for k in keys])
  
          return r'''
  
  %s
  %s
  
  .. csv-table::
     :header: %s
  
     %s
  
  ''' % (title, '-'*len(title), cats, vals)
docs: Generates a statics table based on set categories