np.save function
np.save('data.npy', num_arr) # save
new_num_arr = np.load('data.npy') # load
np.save function
np.save('data.npy', num_arr) # save
new_num_arr = np.load('data.npy') # load
how to save and load data npy
np.save('test3.npy', a) # .npy extension is added if not given
d = np.load('test3.npy')
a == d
# array([ True, True, True, True], dtype=bool)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us