parameters: (self, name=None)
return_statement: return f"{name}: {len(self)} entries{index_summary}"
docstring: Return a summarized representation.
  
          Parameters
          ----------
          name : str
              name to use in the summary representation
  
          Returns
          -------
          String with a summarized representation of the index
docstring_summary: Return a summarized representation.
docstring_tokens: Return a summarized representation .
function: def _summary(self, name=None):
          """
          Return a summarized representation.
  
          Parameters
          ----------
          name : str
              name to use in the summary representation
  
          Returns
          -------
          String with a summarized representation of the index
          """
          if len(self) > 0:
              head = self[0]
              if hasattr(head, "format") and not isinstance(head, str):
                  head = head.format()
              tail = self[-1]
              if hasattr(tail, "format") and not isinstance(tail, str):
                  tail = tail.format()
              index_summary = f", {head} to {tail}"
          else:
              index_summary = ""
  
          if name is None:
              name = type(self).__name__
          return f"{name}: {len(self)} entries{index_summary}"
function_tokens: def _summary ( self , name = None ) : if len ( self ) > 0 : head = self [ 0 ] if hasattr ( head , "format" ) and not isinstance ( head , str ) : head = head . format ( ) tail = self [ - 1 ] if hasattr ( tail , "format" ) and not isinstance ( tail , str ) : tail = tail . format ( ) index_summary = f", {head} to {tail}" else : index_summary = "" if name is None : name = type ( self ) . __name__ return f"{name}: {len(self)} entries{index_summary}"