Skip to content

Python code snippet – How to save array ?

np.save('data.npy', num_arr) # save
new_num_arr = np.load('data.npy') # load
See also  Python code snippet - How to check if all characters in string are same ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.