We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 242690e commit 66684c9Copy full SHA for 66684c9
pandas/tests/reshape/test_concat.py
@@ -1305,11 +1305,14 @@ def test_concat_same_index_names(self, name_in1, name_in2, name_in3, name_out):
1305
result = pd.concat(frames, axis=1)
1306
1307
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)
+ expected = pd.DataFrame(
+ {
+ "x": [0, 1, 2, np.nan, np.nan],
+ "y": [np.nan, 0, 1, 2, np.nan],
+ "z": [np.nan, np.nan, 0, 1, 2],
1313
+ },
1314
+ index=exp_ind,
1315
+ )
1316
1317
tm.assert_frame_equal(result, expected)
1318
0 commit comments