Skip to content

Commit 00c26d4

Browse files
committed
fix test_concat_categorical_datetime
1 parent 73372e6 commit 00c26d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/reshape/concat/test_categorical.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ def test_concat_categorical_datetime(self):
183183

184184
result = pd.concat([df1, df2])
185185
expected = DataFrame(
186-
{"x": Series([datetime(2021, 1, 1), datetime(2021, 1, 2)])}
186+
{
187+
"x": Series(
188+
[datetime(2021, 1, 1), datetime(2021, 1, 2)],
189+
index=[0, 1],
190+
)
191+
}
187192
)
188193

189194
tm.assert_equal(result, expected)

0 commit comments

Comments
 (0)