Skip to content

Commit 44287de

Browse files
committed
Fixed test case to re-sample categorical data for timedelta
1 parent 14666a1 commit 44287de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/tests/test_resample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,6 +1576,7 @@ def test_resample_categorical_data_with_timedeltaindex(self):
15761576
'Group': ['A', 'A']},
15771577
index=pd.to_timedelta([0, 10], unit='s'))
15781578
expected = expected.reindex(['Group_obj', 'Group'], axis=1)
1579+
expected['Group'] = expected['Group_obj'].astype('category')
15791580
tm.assert_frame_equal(result, expected)
15801581

15811582
def test_resample_daily_anchored(self):

0 commit comments

Comments
 (0)