<filename>Section 12_NumPy Resources/5.+Slicing+and+Copying.py<gh_stars>1-10
import numpy as np

np.random.seed(0)
np_rand = np.random.random((3,3))

np_sub_rand = np.copy(np_rand[0:3 , 0])
print(np_sub_rand)

np_sub_rand[0] = 1000

print(np_sub_rand)

print(np_rand)
<filename>Section 12_NumPy Resources/5.+Slicing+and+Copying.py<gh_stars>1-10
import numpy as np

np.random.seed(0)
np_rand = np.random.random((3,3))

np_sub_rand = np.copy(np_rand[0:3 , 0])
print(np_sub_rand)

np_sub_rand[0] = 1000

print(np_sub_rand)

print(np_rand)