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 c81ce78 commit 0d96869Copy full SHA for 0d96869
pandas/tests/frame/test_combine_concat.py
@@ -750,6 +750,16 @@ def test_combine_first_int(self):
750
tm.assert_frame_equal(res, df1)
751
assert res['a'].dtype == 'int64'
752
753
+ def test_combine_first_with_asymmetric_other(self):
754
+ # GH20699
755
+ df1 = pd.DataFrame({'isInt': [1]})
756
+ df2 = pd.DataFrame({'isBool': [True]})
757
+
758
+ res = df1.combine_first(df2)
759
+ exp = pd.DataFrame({'isBool': [True], 'isInt': [1]})
760
761
+ tm.assert_frame_equal(res, exp)
762
763
def test_concat_datetime_datetime64_frame(self):
764
# #2624
765
rows = []
0 commit comments