We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbc446a commit ab56348Copy full SHA for ab56348
pandas/tests/indexes/datetimes/test_to_period.py
@@ -43,7 +43,7 @@ def test_dti_to_period(self):
43
@pytest.mark.parametrize("month", MONTHS)
44
def test_to_period_quarterly(self, month):
45
# make sure we can make the round trip
46
- freq = "Q-{month}".format(month=month)
+ freq = f"Q-{month}"
47
rng = period_range("1989Q3", "1991Q3", freq=freq)
48
stamps = rng.to_timestamp()
49
result = stamps.to_period(freq)
0 commit comments