SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. np.arange(1,5)
  3. np.linspace(1,5,4)
  4. np.zeros(3)
  5. np.ones(3)
  6. np.random.randn(1000)
  7.  
  8. arr = np.array([1,2,3])
  9. arr
  10. len(arr)
  11. arr[1]
  12. dtype('int64')
  13. v1 = np.random.rand(1000000)
  14. %time v1 * v2
  15. dir(v)
  16.  
  17. my_array = np.arange(35)
  18. my_array
  19. mymask = my_array > 4
  20. mymask
  21. my_array.shape = (7,5)
  22. my_array.shape
  23. my_array.ndim
  24. my_array.size
  25. v.reshape((4, 3))
  26. mat[np.abs(mat - mat.mean()) > 1.5*mat.std()]
  27. import this
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top