Skip to content

Commit

Permalink
fix: TypeError: Tag.__init__() got an unexpected keyword argument 'al…
Browse files Browse the repository at this point in the history
…ign'
  • Loading branch information
lisphilar committed Apr 26, 2024
1 parent 3ae9b3b commit 3fd4a36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/dataframe/_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def write_header(self) -> None:
columns = self.df.columns
for c in self.col_idx:
_dict = self.attribute_nested_dict[c]
with Tag(self.elements, "th", **_dict):
with Tag(self.elements, "th", _dict):
if c == -1:
self.elements.append("…")
else:
Expand All @@ -127,7 +127,7 @@ def write_header(self) -> None:
dtypes = self.df._df.dtype_strings()
for c in self.col_idx:
_dict = self.attribute_nested_dict[c]
with Tag(self.elements, "td", **_dict):
with Tag(self.elements, "td", _dict):
if c == -1:
self.elements.append("…")
else:
Expand All @@ -141,7 +141,7 @@ def write_body(self) -> None:
with Tag(self.elements, "tr"):
for c in self.col_idx:
_dict = self.attribute_nested_dict[c]
with Tag(self.elements, "td", **_dict):
with Tag(self.elements, "td", _dict):
if r == -1 or c == -1:
self.elements.append("…")
else:
Expand Down

0 comments on commit 3fd4a36

Please sign in to comment.