def set_up_for_html(df, url_col_name):
  """Moves the url_col_name so it is the first column in the html output."""
  if url_col_name not in df.columns:
    raise ValueError('expected url col "%s" but did not find it.' %
                     (url_col_name))
  cols_without_url = list(df.columns)
  cols_without_url.remove(url_col_name)
  cols_in_order = [url_col_name] + cols_without_url
  df_for_html = df[cols_in_order]
  return df_for_html