SHARE
TWEET

Untitled

a guest Jun 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. arr = np.full((10,), -1, np.int64)
  3.      
  4. import numpy as np
  5. data_type = [("value_1", np.int64), ("value_2", np.float64)]
  6. default = (-1, np.nan)
  7. arr = np.full((10,), default, data_type)
  8.      
  9. default_array = np.array([default], data_type)
  10. new_default = default_array[0]
  11. arr = np.full((10,), new_default, data_type)
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