Skip to content

Commit

Permalink
Fix create table script to run with imaging
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Nov 2, 2023
1 parent d12f067 commit 205e641
Show file tree
Hide file tree
Showing 3 changed files with 1,178 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/create_interactive_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def generate_table(
output_path: str,
) -> None:
df = pd.read_csv(tsv_path, sep="\t").assign(Expand=lambda df: "").fillna("")
df = df[df["To keep"]].loc[:, COLUMNS].reindex(columns=COLUMNS)
df["To keep"] = df["To keep"].replace("", True)
df = df.query("`To keep`").loc[:, COLUMNS].reindex(columns=COLUMNS)
table = df.to_html(border=0, table_id="dataframe", classes=["display", "nowrap"], index=False)

with open(template_path) as template_file:
Expand Down
Loading

0 comments on commit 205e641

Please sign in to comment.