class_docstr: Parameter table class.
  
  Example:
  
      >>> params = ParamTable()
      >>> params.add(Param('ham', 'Parma Ham'))
      >>> params.add(Param('egg', 'Over Easy'))
      >>> params['ham']
      'Parma Ham'
      >>> params['egg']
      'Over Easy'
      >>> print(params)
      ham                           Parma Ham
      egg                           Over Easy
      >>> params.add(Param('egg', 'Sunny side Up'))
      Traceback (most recent call last):
          ...
      ValueError: Parameter named egg already exists.
      To re-assign parameter egg value, use `params["egg"] = value` instead.
class_docstr_tok: ["Parameter","table","class",".","Example",":",">",">",">","params","=","ParamTable","(",")",">",">",">","params.add","(","Param","(","'ham","'",",","'Parma","Ham","'",")",")",">",">",">","params.add","(","Param","(","'egg","'",",","'Over","Easy","'",")",")",">",">",">","params","[","'ham","'","]","'Parma","Ham'",">",">",">","params","[","'egg","'","]","'Over","Easy'",">",">",">","print","(","params",")","ham","Parma","Ham","egg","Over","Easy",">",">",">","params.add","(","Param","(","'egg","'",",","'Sunny","side","Up","'",")",")","Traceback","(","most","recent","call","last",")",":","...","ValueError",":","Parameter","named","egg","already","exists",".","To","re-assign","parameter","egg","value",",","use","`","params","[","``","egg","''","]","=","value","`","instead","."]
docstr: Convert the parameter table into a pandas data frame.
  
  :return: A `pandas.DataFrame`.
  
  Example:
      >>> import matchzoo as mz
      >>> table = mz.ParamTable()
      >>> table.add(mz.Param(name='x', value=10, desc='my x'))
      >>> table.add(mz.Param(name='y', value=20, desc='my y'))
      >>> table.to_frame()
        Name Description  Value Hyper-Space
      0    x        my x     10        None
      1    y        my y     20        None
docstr_tok: ["Convert","the","parameter","table","into","a","pandas","data","frame",".",":","return",":","A","`","pandas.DataFrame","`",".","Example",":",">",">",">","import","matchzoo","as","mz",">",">",">","table","=","mz.ParamTable","(",")",">",">",">","table.add","(","mz.Param","(","name=","'","x","'",",","value=10",",","desc='my","x","'",")",")",">",">",">","table.add","(","mz.Param","(","name=","'","y","'",",","value=20",",","desc='my","y","'",")",")",">",">",">","table.to_frame","(",")","Name","Description","Value","Hyper-Space","0","x","my","x","10","None","1","y","my","y","20","None"]
code: def to_frame(self) -> pd.DataFrame:
      """
      Convert the parameter table into a pandas data frame.
  
      :return: A `pandas.DataFrame`.
  
      Example:
          >>> import matchzoo as mz
          >>> table = mz.ParamTable()
          >>> table.add(mz.Param(name='x', value=10, desc='my x'))
          >>> table.add(mz.Param(name='y', value=20, desc='my y'))
          >>> table.to_frame()
            Name Description  Value Hyper-Space
          0    x        my x     10        None
          1    y        my y     20        None
  
      """
      df = pd.DataFrame(
          data={
              "Name": [p.name for p in self],
              "Description": [p.desc for p in self],
              "Value": [p.value for p in self],
              "Hyper-Space": [p.hyper_space for p in self],
          },
          columns=["Name", "Description", "Value", "Hyper-Space"],
      )
      return df
  
imports: import typing
  import pandas
  import collections.abc
  from matchzoo.engine.param import Param
  from matchzoo.engine import hyper_spaces
label_desc: Use image node_id 6 for calling the ParamTable obj's underlying member method code with example usage: obj.to_frame() and returns: df