Skip to content

Commit 9108900

Browse files
committed
CLN: apply manual f-string fixes inspired by flynt -a
1 parent fef8350 commit 9108900

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

asv_bench/benchmarks/io/hdf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setup(self):
4343
np.random.randn(N, 100), index=date_range("1/1/2000", periods=N)
4444
)
4545
self.df_dc = DataFrame(
46-
np.random.randn(N, 10), columns=["C%03d" % i for i in range(10)]
46+
np.random.randn(N, 10), columns=[f"C{i:03d}" for i in range(10)]
4747
)
4848

4949
self.fname = "__test__.h5"

pandas/tests/io/formats/style/test_html.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def test_rendered_links(type, text, exp, found):
802802
df = DataFrame([0], index=[text])
803803
styler = df.style.format_index(hyperlinks="html")
804804

805-
rendered = '<a href="{0}" target="_blank">{0}</a>'.format(found)
805+
rendered = f'<a href="{found}" target="_blank">{found}</a>'
806806
result = styler.to_html()
807807
assert (rendered in result) is exp
808808
assert (text in result) is not exp # test conversion done when expected and not

0 commit comments

Comments
 (0)