From 3fd4a36f1edc440369e779c05004d82312edff1b Mon Sep 17 00:00:00 2001 From: lisphilar <7270139+lisphilar@users.noreply.github.com> Date: Sat, 27 Apr 2024 00:30:00 +0900 Subject: [PATCH] fix: TypeError: Tag.__init__() got an unexpected keyword argument 'align' --- py-polars/polars/dataframe/_html.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-polars/polars/dataframe/_html.py b/py-polars/polars/dataframe/_html.py index bb95cb01737d..49d2a5c2d1b0 100644 --- a/py-polars/polars/dataframe/_html.py +++ b/py-polars/polars/dataframe/_html.py @@ -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: @@ -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: @@ -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: