def clean_frame(pd_frame):
  """ A convenience function that cleans a pandas DataFrame.

  Args:
    pd_frame (:obj:`pandas.DataFrame`): The Pandas DataFrame.

  Returns:
    A :obj:`pandas.DataFrame` with all rows containing empty or NaN elements
    removed.
  """
  return pd_frame.dropna().reset_index(drop=True)