Skip to content

Commit 1d57e0a

Browse files
committed
use f-string
1 parent 441f4f2 commit 1d57e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/window/test_timeseries_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,12 @@ def test_ragged_max(self):
558558
def test_freqs_ops(self, freq, op, result_data):
559559
# GH 21096
560560
index = date_range(
561-
start="2018-1-1 01:00:00", freq="1{}".format(freq), periods=10
561+
start="2018-1-1 01:00:00", freq=f"1{freq}", periods=10
562562
)
563563
s = Series(data=0, index=index)
564564
s.iloc[1] = np.nan
565565
s.iloc[-1] = 2
566-
result = getattr(s.rolling(window="10{}".format(freq)), op)()
566+
result = getattr(s.rolling(window=f"10{freq}"), op)()
567567
expected = Series(data=result_data, index=index)
568568

569569
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)