File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1111,13 +1111,15 @@ def test_describe_objects(self):
1111
1111
'top' : 'a' , 'freq' : 3 }, index = result .index )
1112
1112
assert_series_equal (result , expected )
1113
1113
1114
- ser = Series (self .ts .index )
1114
+ dt = list (self .ts .index )
1115
+ dt .append (dt [0 ])
1116
+ ser = Series (dt )
1115
1117
rs = ser .describe ()
1116
- min_date = min (self . ts . index )
1117
- max_date = max (self . ts . index )
1118
- xp = Series ({'count' : len (self . ts . index ),
1118
+ min_date = min (dt )
1119
+ max_date = max (dt )
1120
+ xp = Series ({'count' : len (dt ),
1119
1121
'unique' : len (self .ts .index ),
1120
- 'first' : min_date , 'last' : max_date , 'freq' : 1 ,
1122
+ 'first' : min_date , 'last' : max_date , 'freq' : 2 ,
1121
1123
'top' : min_date }, index = rs .index )
1122
1124
assert_series_equal (rs , xp )
1123
1125
You can’t perform that action at this time.
0 commit comments