1

Topic: Python numpy where

I study a python, came across in the book a construction and I can not understand that it does. x = [[10,11], [12,13]] x1, x2 = np.where (x) print x1 print x2 the Output: [0 0 1 1 [0 1 0 1] Can explain why such values turned out?

2

Re: Python numpy where

G> Can explain why such values turned out? These are four coordinates of a matrix where values are not equal to zero.