Skip to content

Commit

Permalink
Remove HTML tag functions
Browse files Browse the repository at this point in the history
All tags are created via the `Tag` class
  • Loading branch information
zundertj authored and ritchie46 committed Nov 12, 2021
1 parent 6acfe45 commit 2032065
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions py-polars/polars/_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,34 +39,6 @@ def __exit__(
self.elements.append(f"</{self.tag}>")


def tag(inner: str, tag: str) -> str:
return f"<{tag}>{inner}</{tag}>"


def th(inner: str) -> str:
return tag(inner, "th")


def tr(inner: str) -> str:
return tag(inner, "tr")


def thead(inner: str) -> str:
return tag(inner, "thead")


def tbody(inner: str) -> str:
return tag(inner, "tbody")


def table(inner: str) -> str:
return tag(inner, "table")


def div(inner: str) -> str:
return tag(inner, "div")


class HTMLFormatter:
def __init__(self, df: "pl.DataFrame", max_cols: int = 75, max_rows: int = 40):
self.df = df
Expand Down

0 comments on commit 2032065

Please sign in to comment.