numpy.reshape takes a sequence of integers or a tuple?
by centguy from LinuxQuestions.org on (#6FYX0)
print( y.reshape( 3,4 ) == y.reshape( (3,4)) )
shows that a 3x4 matrix of True.
Why does python treat y.reshape( 3,4 ) as legitimate?
I thought the argument must be a tuple.
shows that a 3x4 matrix of True.
Why does python treat y.reshape( 3,4 ) as legitimate?
I thought the argument must be a tuple.