I was reading this question about numpy, array and reshape. I understand what the OP is doing and his line of code, except the last argument of reshape: 3
According to the documentation of numpy.reshape
, the third argument of the function is the order
and should be a string {'C', 'F', 'A'}, optional.
So what does the OP argument 3
means?
Side note: In the question, OP places 3
as second argument because it is the function numpy.array.reshape
, while in the documentation of numpy.reshape
the order is the third argument. But it is because in numpy.reshape
the array itself is the first argument.
The numpy.array.reshape
documentation page redirects to numpy.reshape
page.