code: def expand(self, data: ['SASdata', str] = None,
                 by: [str, list] = None,
                 convert: str = None,
                 id: [str, list] = None,
                 procopts: str = None,
                 stmtpassthrough: str = None,
                 **kwargs: dict) -> 'SASresults':
          
docs: Python method to call the EXPAND procedure
  
          Documentation link:
          https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=etsug&docsetTarget=etsug_expand_syntax.htm&locale=en
  
          :param data: SASdata object or string. This parameter is required.
          :parm by: The by variable can be a string or list type.
          :parm convert: The convert variable can only be a string type.
          :parm id: The id variable can be a string or list type.
          :parm procopts: The procopts variable is a generic option available for advanced use. It can only be a string type.
          :parm stmtpassthrough: The stmtpassthrough variable is a generic option available for advanced use. It can only be a string type.
          :return: SAS Result Object