We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f1c9e5 commit 9552a43Copy full SHA for 9552a43
pandas/tests/io/formats/test_printing.py
@@ -20,7 +20,9 @@ def test_formatted_index_names():
20
21
for input_names, expected_names in test_cases:
22
# Create DataFrame with specified index names
23
- df = pd.DataFrame({name: [1, 2, 3] for name in input_names}).set_index(input_names)
+ df = pd.DataFrame(
24
+ {name: [1, 2, 3] for name in input_names}
25
+ ).set_index(input_names)
26
index_names_str = df.index.names.__str__()
27
28
formatted_names = ast.literal_eval(index_names_str)
0 commit comments