Paste Search Dynamic
arange
  1. import numpy as np
  2. M = np.arange(20).reshape((5,4))
  3. M = M + M[::-1] * np.random.randint(100)
  4. M2 = np.partition(M,1)
  5. print(M)
  6. print(M2)
  7.  
Parsed in 0.003 seconds