Skip to content

Commit 633602e

Browse files
y-pwesm
y-p
authored andcommitted
TST: combining frame with empty frame still unions index
1 parent 5d6e7c8 commit 633602e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/tests/test_frame.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6131,6 +6131,9 @@ def test_combine_first(self):
61316131
comb = self.empty.combine_first(self.frame)
61326132
assert_frame_equal(comb, self.frame)
61336133

6134+
comb = self.frame.combine_first(DataFrame(index=["faz","boo"]))
6135+
self.assertTrue("faz" in comb.index)
6136+
61346137
def test_combine_first_mixed_bug(self):
61356138
idx = Index(['a','b','c','e'])
61366139
ser1 = Series([5.0,-9.0,4.0,100.],index=idx)

0 commit comments

Comments
 (0)