Skip to content

Commit 5bc5475

Browse files
committed
add missing f
1 parent 477e4c2 commit 5bc5475

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/window/rolling.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def __repr__(self) -> str:
212212
"""
213213

214214
attrs = (
215-
"{k}={getattr(self, k)}"
215+
f"{k}={getattr(self, k)}"
216216
for k in self._attributes
217217
if getattr(self, k, None) is not None
218218
)
@@ -250,8 +250,7 @@ def _prep_values(self, values: Optional[np.ndarray] = None) -> np.ndarray:
250250
elif needs_i8_conversion(values.dtype):
251251
raise NotImplementedError(
252252
f"ops for {self._window_type} for this "
253-
f"dtype {values.dtype} are not "
254-
"implemented"
253+
f"dtype {values.dtype} are not implemented"
255254
)
256255
else:
257256
try:
@@ -382,7 +381,7 @@ def _get_roll_func(self, func_name: str) -> Callable:
382381
window_func = getattr(window_aggregations, func_name, None)
383382
if window_func is None:
384383
raise ValueError(
385-
"we do not support this function " f"in window_aggregations.{func_name}"
384+
f"we do not support this function in window_aggregations.{func_name}"
386385
)
387386
return window_func
388387

0 commit comments

Comments
 (0)