Skip to content

Commit 93a4ccc

Browse files
committed
TST: alter test_unbalanced in test_melt
1 parent ab291a7 commit 93a4ccc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/reshape/test_melt.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -691,11 +691,11 @@ def test_unbalanced(self):
691691
)
692692
df["id"] = df.index
693693
exp_data = {
694-
"X": ["X1", "X1", "X2", "X2"],
695-
"A": [1.0, 3.0, 2.0, 4.0],
696-
"B": [5.0, np.nan, 6.0, np.nan],
697-
"id": [0, 0, 1, 1],
698-
"year": [2010, 2011, 2010, 2011],
694+
"X": ["X1", "X2", "X1", "X2"],
695+
"A": [1.0, 2.0, 3.0, 4.0],
696+
"B": [5.0, 6.0, np.nan, np.nan],
697+
"id": [0, 1, 0, 1],
698+
"year": [2010, 2010, 2011, 2011],
699699
}
700700
expected = pd.DataFrame(exp_data)
701701
expected = expected.set_index(["id", "year"])[["X", "A", "B"]]

0 commit comments

Comments
 (0)