code: def to_pandas(self):
          
          try:
              from pandas import DataFrame, Series
          except ImportError:
              raise ImportError('You must have pandas installed to export pandas DataFrames')
  
          result = DataFrame(self._raw_tree)
  
          return result
docs: Return a pandas dataframe representation of the condensed tree.
  
          Each row of the dataframe corresponds to an edge in the tree.
          The columns of the dataframe are `parent`, `child`, `lambda_val`
          and `child_size`.
  
          The `parent` and `child` are the ids of the
          parent and child nodes in the tree. Node ids less than the number
          of points in the original dataset represent individual points, while
          ids greater than the number of points are clusters.
  
          The `lambda_val` value is the value (1/distance) at which the `child`
          node leaves the cluster.
  
          The `child_size` is the number of points in the `child` node.