File tree 1 file changed +2
-23
lines changed
1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -1344,29 +1344,8 @@ def test_resample_empty(self):
1344
1344
# (ex: doing mean with dtype of np.object)
1345
1345
pass
1346
1346
1347
- def test_resample_empty_nunique (self ):
1348
-
1349
- # this routines should be folded into the above when
1350
- # GH12886 is closed
1351
- for index in tm .all_timeseries_index_generator (0 ):
1352
- for dtype in (np .float , np .int , np .object , 'datetime64[ns]' ):
1353
- for how in ['nunique' ]:
1354
-
1355
- empty_series = pd .Series ([], index , dtype )
1356
-
1357
- def f ():
1358
- getattr (empty_series .resample ('d' ), how )()
1359
-
1360
- if isinstance (index ,
1361
- (pd .DatetimeIndex , pd .TimedeltaIndex )):
1362
- self .assertRaises (Exception , f )
1363
- else :
1364
- try :
1365
- f ()
1366
- except DataError :
1367
- # Ignore these since some combinations are invalid
1368
- # (ex: doing mean with dtype of np.object)
1369
- pass
1347
+ # this should also tests nunique (IOW, use resample_methods)
1348
+ # when GH12886 is closed
1370
1349
1371
1350
def test_resample_dtype_preservation (self ):
1372
1351
You can’t perform that action at this time.
0 commit comments