Skip to content

Commit 1e3037d

Browse files
author
adrien pacifico
committed
modify test to respect : An empty categorical, and a categorical should concat as a categorical.
1 parent ce7b518 commit 1e3037d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/reshape/concat/test_append_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ def test_concat_categorical_empty(self):
696696

697697
s1 = Series([], dtype="category")
698698
s2 = Series([1, 2], dtype="category")
699-
exp = s2.astype(object)
699+
exp = s2
700700
tm.assert_series_equal(pd.concat([s1, s2], ignore_index=True), exp)
701701
tm.assert_series_equal(s1._append(s2, ignore_index=True), exp)
702702

0 commit comments

Comments
 (0)