#NEWLINE# def test_fill_value_when_combine_const( self ) : #NEWLINE# #INDENT# dat = np . array ( [ 0 , 1 , np . nan , 3 , 4 , 5 ] , dtype = 'float' ) #NEWLINE# df = SparseDataFrame ( { #NEWLINE# #INDENT# 'foo' : dat , #NEWLINE# #UNINDENT# } , index = range ( 6 ) ) #NEWLINE# exp = df . fillna ( 0 ) . add ( 2 ) #NEWLINE# res = df . add ( 2 , fill_value = 0 ) #NEWLINE# tm . assert_sp_frame_equal ( res , df )