Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Nov 2, 2023
1 parent 08175b6 commit dfe8558
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions bin/create_interactive_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,9 @@ def generate_table(
template_path: str,
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))
table = df.to_html(
border=0,
table_id="dataframe",
classes=["display", "nowrap"],
index=False)
df = pd.read_csv(tsv_path, sep="\t").assign(Expand=lambda df: "").fillna("")
df = df[df["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:
template = template_file.read()
Expand Down

0 comments on commit dfe8558

Please sign in to comment.