Skip to content

Commit afc1dea

Browse files
committed
CLN: replace joins on static arguments with f-strings
1 parent e31ab6d commit afc1dea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/apply.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ def _make_unique_kwarg_list(
13851385
[('a', '<lambda>_0'), ('a', '<lambda>_1'), ('b', '<lambda>')]
13861386
"""
13871387
return [
1388-
(pair[0], "_".join([pair[1], str(seq[:i].count(pair))]))
1388+
(pair[0], f"{pair[1]}_{seq[:i].count(pair)}")
13891389
if seq.count(pair) > 1
13901390
else pair
13911391
for i, pair in enumerate(seq)

pandas/core/window/doc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def create_section_header(header: str) -> str:
1212
"""Create numpydoc section header"""
13-
return "\n".join((header, "-" * len(header))) + "\n"
13+
return f"{header}\n{'-' * len(header)}\n"
1414

1515

1616
template_header = "\nCalculate the {window_method} {aggregation_description}.\n\n"

0 commit comments

Comments
 (0)