#NEWLINE# def test_construct_DataFrame_with_sp_series( self ) : #NEWLINE# #INDENT# df = DataFrame ( { #NEWLINE# #INDENT# 'col' : self . bseries , #NEWLINE# #UNINDENT# } ) #NEWLINE# result . iloc [ : 1 ] #NEWLINE# df [ 'col' ] #NEWLINE# df . dtypes #NEWLINE# str ( df ) #NEWLINE# tm . assert_sp_series_equal ( df [ 'col' ] , self . bseries , check_names = False ) #NEWLINE# result = df . iloc [ : , 0 ] #NEWLINE# tm . assert_sp_series_equal ( result , self . bseries , check_names = False ) #NEWLINE# expected = Series ( { #NEWLINE# #INDENT# 'col' : 'float64:sparse' , #NEWLINE# #UNINDENT# } ) #NEWLINE# result = df . ftypes #NEWLINE# tm . assert_series_equal ( expected , result )