@@ -683,7 +683,6 @@ def test_append(self):
683
683
tm .assert_sp_frame_equal (appended , expected [['A' , 'B' , 'C' , 'D' ]],
684
684
consolidate_block_indices = True )
685
685
686
- @pytest .mark .xfail (reason = "This is all broken, it densifies" , strict = True )
687
686
def test_astype (self ):
688
687
sparse = pd .SparseDataFrame ({'A' : SparseArray ([1 , 2 , 3 , 4 ],
689
688
dtype = np .int64 ),
@@ -695,21 +694,21 @@ def test_astype(self):
695
694
res = sparse .astype (np .float64 )
696
695
exp = pd .SparseDataFrame ({'A' : SparseArray ([1. , 2. , 3. , 4. ],
697
696
fill_value = 0. ,
698
- kind = 'block ' ),
697
+ kind = 'integer ' ),
699
698
'B' : SparseArray ([4. , 5. , 6. , 7. ],
700
699
fill_value = 0. ,
701
- kind = 'block ' )},
700
+ kind = 'integer ' )},
702
701
default_fill_value = np .nan )
703
702
tm .assert_sp_frame_equal (res , exp )
704
703
assert res ['A' ].dtype == SparseDtype (np .float64 )
705
704
assert res ['B' ].dtype == SparseDtype (np .float64 )
706
705
707
706
sparse = pd .SparseDataFrame ({'A' : SparseArray ([0 , 2 , 0 , 4 ],
708
707
dtype = np .int64 ,
709
- kind = 'block ' ),
708
+ kind = 'integer ' ),
710
709
'B' : SparseArray ([0 , 5 , 0 , 7 ],
711
710
dtype = np .int64 ,
712
- kind = 'block ' )},
711
+ kind = 'integer ' )},
713
712
default_fill_value = 0 )
714
713
assert sparse ['A' ].dtype == SparseDtype (np .int64 )
715
714
assert sparse ['B' ].dtype == SparseDtype (np .int64 )
@@ -1058,7 +1057,7 @@ def _check(frame, orig):
1058
1057
1059
1058
self ._check_all (_check )
1060
1059
1061
- @pytest .mark .xfail (reason = "broken" , strict = True )
1060
+ # @pytest.mark.xfail(reason="broken", strict=True)
1062
1061
def test_shift (self ):
1063
1062
1064
1063
def _check (frame , orig ):
0 commit comments