@@ -2353,38 +2353,6 @@ def test_series(self):
2353
2353
ts3 = Series (ts .values , Index (np .asarray (ts .index , dtype = object ), dtype = object ))
2354
2354
self ._check_roundtrip (ts3 , tm .assert_series_equal , check_index_type = False )
2355
2355
2356
- @ignore_sparse
2357
- @ignore_series_tosparse
2358
- def test_sparse_series (self ):
2359
-
2360
- s = tm .makeStringSeries ()
2361
- s .iloc [3 :5 ] = np .nan
2362
- ss = s .to_sparse ()
2363
- self ._check_roundtrip (ss , tm .assert_series_equal , check_series_type = True )
2364
-
2365
- ss2 = s .to_sparse (kind = "integer" )
2366
- self ._check_roundtrip (ss2 , tm .assert_series_equal , check_series_type = True )
2367
-
2368
- ss3 = s .to_sparse (fill_value = 0 )
2369
- self ._check_roundtrip (ss3 , tm .assert_series_equal , check_series_type = True )
2370
-
2371
- @ignore_sparse
2372
- @ignore_dataframe_tosparse
2373
- def test_sparse_frame (self ):
2374
-
2375
- s = tm .makeDataFrame ()
2376
- s .iloc [3 :5 , 1 :3 ] = np .nan
2377
- s .iloc [8 :10 , - 2 ] = np .nan
2378
- ss = s .to_sparse ()
2379
-
2380
- self ._check_double_roundtrip (ss , tm .assert_frame_equal , check_frame_type = True )
2381
-
2382
- ss2 = s .to_sparse (kind = "integer" )
2383
- self ._check_double_roundtrip (ss2 , tm .assert_frame_equal , check_frame_type = True )
2384
-
2385
- ss3 = s .to_sparse (fill_value = 0 )
2386
- self ._check_double_roundtrip (ss3 , tm .assert_frame_equal , check_frame_type = True )
2387
-
2388
2356
def test_float_index (self ):
2389
2357
2390
2358
# GH #454
0 commit comments