Skip to content

Commit 80f9c1b

Browse files
committed
use f-string in __repr__ return in pandas/core/window/rolling.py
1 parent 3775699 commit 80f9c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/window/rolling.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __repr__(self) -> str:
217217
if getattr(self, attr_name, None) is not None
218218
)
219219
attrs = ",".join(attrs_list)
220-
return "{klass} [{attrs}]".format(klass=self._window_type, attrs=attrs)
220+
return f"{self._window_type} [{attrs}]"
221221

222222
def __iter__(self):
223223
url = "https://github.com/pandas-dev/pandas/issues/11704"

0 commit comments

Comments
 (0)