hysts HF Staff commited on
Commit
aa55708
·
1 Parent(s): fb9f067
Files changed (1) hide show
  1. table.py +2 -8
table.py CHANGED
@@ -58,13 +58,7 @@ def format_author_claim_ratio(row: dict) -> str:
58
  return f"{n_linked_authors}/{n_authors} {author_linked}".strip()
59
 
60
 
61
- df_orig = (
62
- datasets.load_dataset(BASE_REPO_ID, split="train")
63
- .to_polars()
64
- .with_columns(
65
- pl.lit([], dtype=pl.List(pl.Utf8)).alias(col_name) for col_name in ["space_ids", "model_ids", "dataset_ids"]
66
- )
67
- )
68
  df_paper_page = (
69
  datasets.load_dataset(PAPER_PAGE_REPO_ID, split="train")
70
  .to_polars()
@@ -144,7 +138,7 @@ for repo_id_col, markdown_col, base_url in [
144
  df_orig = df_orig.with_columns(
145
  pl.col(repo_id_col)
146
  .map_elements(
147
- lambda lst: "\n".join([f"[link]({base_url}{x})" for x in lst]) if lst is not None else None, # noqa: B023
148
  return_dtype=pl.Utf8,
149
  )
150
  .fill_null("")
 
58
  return f"{n_linked_authors}/{n_authors} {author_linked}".strip()
59
 
60
 
61
+ df_orig = datasets.load_dataset(BASE_REPO_ID, split="train").to_polars()
 
 
 
 
 
 
62
  df_paper_page = (
63
  datasets.load_dataset(PAPER_PAGE_REPO_ID, split="train")
64
  .to_polars()
 
138
  df_orig = df_orig.with_columns(
139
  pl.col(repo_id_col)
140
  .map_elements(
141
+ lambda lst: "\n".join([f"[{x}]({base_url}{x})" for x in lst]) if lst is not None else None, # noqa: B023
142
  return_dtype=pl.Utf8,
143
  )
144
  .fill_null("")