Skip to content

Commit

Permalink
fix expand button
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Mar 5, 2024
1 parent eefcb73 commit d7c52f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/create_interactive_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
]


# COLUMNS_TO_ADD = [
# "Expand"
# ]


def generate_table(
tsv_path: str,
template_path: str,
Expand All @@ -44,7 +49,9 @@ def generate_table(
df["To keep"] = df["To keep"].replace("", True)
df = df.query("`To keep`")

df.insert(0, "Expand", None) # the column where the expand button is shown
df = df.drop(COLUMNS_TO_DROP, axis=1)

# df = df.loc[:, COLUMNS].reindex(columns=COLUMNS)
table = df.to_html(border=0, table_id="dataframe", classes=["display", "nowrap"], index=False)

Expand Down

0 comments on commit d7c52f9

Please sign in to comment.