Kyubyong / numpy_exercises

Numpy exercises.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The different between numpy function and ndarray method

Xls1994 opened this issue · comments

Hi, I have a small confused with numpy.
For example, we can use the numpy.reshape(x,(1,3)) to reshape a array. Also we can use x.reshape((1,3)) to do this. What is the major difference between the two ? Thank you !

I think both are identical.

Thanks for your answer!