parameters: (self, value)
docstring: Set the format type.
              Allowed charts are: count or percentage
  
              Args:
                  value (str): format type.
  
              Raises:
                  ValueError: Not a valid format. Must be count or percentage.
docstring_summary: Set the format type.
              Allowed charts are: count or percentage
docstring_tokens: Set the format type . Allowed charts are : count or percentage
function: def format(self, value):
          """Set the format type.
              Allowed charts are: count or percentage
  
              Args:
                  value (str): format type.
  
              Raises:
                  ValueError: Not a valid format. Must be count or percentage.
          """
          if value not in ["count", "percentage"]:
              raise ValueError("Not a valid format. Must be count or percentage")
  
          self.options["format"] = value
function_tokens: def format ( self , value ) : if value not in [ "count" , "percentage" ] : raise ValueError ( "Not a valid format. Must be count or percentage" ) self . options [ "format" ] = value