parameters: (self, max_vals=10, footer=True)
return_statement: return str(result)
docstring: a short repr displaying only max_vals and an optional (but default
          footer)
docstring_summary: a short repr displaying only max_vals and an optional (but default
          footer)
docstring_tokens: a short repr displaying only max_vals and an optional ( but default footer )
function: def _tidy_repr(self, max_vals=10, footer=True) -> str:
          """ a short repr displaying only max_vals and an optional (but default
          footer)
          """
          num = max_vals // 2
          head = self[:num]._get_repr(length=False, footer=False)
          tail = self[-(max_vals - num) :]._get_repr(length=False, footer=False)
  
          result = f"{head[:-1]}, ..., {tail[1:]}"
          if footer:
              result = f"{result}\n{self._repr_footer()}"
  
          return str(result)
function_tokens: def _tidy_repr ( self , max_vals = 10 , footer = True ) -> str : num = max_vals // 2 head = self [ : num ] . _get_repr ( length = False , footer = False ) tail = self [ - ( max_vals - num ) : ] . _get_repr ( length = False , footer = False ) result = f"{head[:-1]}, ..., {tail[1:]}" if footer : result = f"{result}\n{self._repr_footer()}" return str ( result )