#NEWLINE# def test_reshape_2d_return_array( self ) : #NEWLINE# #INDENT# x = Series ( np . random . random ( 201 ) , name = 'x' ) #NEWLINE# result = x . reshape ( ( ( - 1 ) , 1 ) ) #NEWLINE# self . assertNotIsInstance ( result , Series ) #NEWLINE# result2 = np . reshape ( x , ( ( - 1 ) , 1 ) ) #NEWLINE# self . assertNotIsInstance ( result2 , Series ) #NEWLINE# result = x [ : , None ] #NEWLINE# expected = x . reshape ( ( ( - 1 ) , 1 ) ) #NEWLINE# assert_almost_equal ( x , expected )