def METHOD_NAME(logfile):
  """Gets a df of per trial results from a logfile.
    Args:
        experiment_dir: str
    Returns:
        df: DataFrame where indices are trials, columns are 
            metric names and values are lists.
            e.g 
            +---------+-----------------+-----------------+
            |         | loss            | step            |
            |---------+-----------------+-----------------|
            | trial_0 | [5.1, 3.2, 1.0] | [100, 200, 300] |
            | trial_1 | [5.1, 3.2, 1.0] | [100, 200, 300] |
            +---------+-----------------+-----------------+
    """
  trials_dict = get_trials_dict(logfile)
  df = pd.DataFrame(trials_dict).transpose()
  return df