Skip to content

Commit 66684c9

Browse files
committed
fix concat test formatting
1 parent 242690e commit 66684c9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pandas/tests/reshape/test_concat.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,11 +1305,14 @@ def test_concat_same_index_names(self, name_in1, name_in2, name_in3, name_out):
13051305
result = pd.concat(frames, axis=1)
13061306

13071307
exp_ind = pd.Index(["a", "b", "c", "d", "e"], name=name_out)
1308-
expected = pd.DataFrame({
1309-
"x": [0, 1, 2, np.nan, np.nan],
1310-
"y": [np.nan, 0, 1, 2, np.nan],
1311-
"z": [np.nan, np.nan, 0, 1, 2],
1312-
}, index=exp_ind)
1308+
expected = pd.DataFrame(
1309+
{
1310+
"x": [0, 1, 2, np.nan, np.nan],
1311+
"y": [np.nan, 0, 1, 2, np.nan],
1312+
"z": [np.nan, np.nan, 0, 1, 2],
1313+
},
1314+
index=exp_ind,
1315+
)
13131316

13141317
tm.assert_frame_equal(result, expected)
13151318

0 commit comments

Comments
 (0)