Skip to content

Commit 9552a43

Browse files
Refactor test_formatted_index_names to adhere with line-legth constraints
1 parent 0f1c9e5 commit 9552a43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/io/formats/test_printing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ def test_formatted_index_names():
2020

2121
for input_names, expected_names in test_cases:
2222
# Create DataFrame with specified index names
23-
df = pd.DataFrame({name: [1, 2, 3] for name in input_names}).set_index(input_names)
23+
df = pd.DataFrame(
24+
{name: [1, 2, 3] for name in input_names}
25+
).set_index(input_names)
2426
index_names_str = df.index.names.__str__()
2527

2628
formatted_names = ast.literal_eval(index_names_str)

0 commit comments

Comments
 (0)