Skip to content

Commit 37731b6

Browse files
committed
BUG: GH39443 - ensure categorical dtype
1 parent 1295868 commit 37731b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/tests/reshape/concat/test_categorical.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ def test_categorical_datetime_concat(self):
216216

217217
result = pd.concat([df1, df2])
218218
expected = DataFrame(
219-
{"x": Series([datetime(2021, 1, 1), datetime(2021, 1, 2)])}
219+
{
220+
"x": Series(
221+
[datetime(2021, 1, 1), datetime(2021, 1, 2)], dtype="category"
222+
)
223+
}
220224
)
221225

222226
tm.assert_equal(result, expected)

0 commit comments

Comments
 (0)