Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

save set of numpy arrays to file py

>>> with open('test.npy', 'wb') as f:
		np.save(f, np.array([1, 2]))
		np.save(f, np.array([1, 3]))
>>> with open('test.npy', 'rb') as f:
		a = np.load(f)
		b = np.load(f)
>>> print(a, b)
# [1 2] [1 3]
Comment

PREVIOUS NEXT
Code Example
Python :: kivy display pil image 
Python :: geckodriver seleniunm setup 
Python :: best way to access nested key in python 
Python :: django set default value for model not form 
Python :: how to plot a pandas dataframe with matplotlib 
Python :: python pickle dataframe 
Python :: change a decimal to time in datetime python 
Python :: join function python 
Python :: bash escape double quote windows batch 
Python :: python dataframe sort by column name 
Python :: python dataframe reihe anzeigen 
Python :: python range() float 
Python :: filter field set in django formds 
Python :: wkhtmltopdf pdfkit blocked access to file 
Python :: image processing python 
Python :: json payload python function 
Python :: python repr vs str 
Python :: multiple line comments 
Python :: django strptime 
Python :: Syntax of Opening a File in python 
Python :: python print set 
Python :: destory image in pygame 
Python :: dynamically create python dictionary 
Python :: NumPy flipud Example 
Python :: pyqt math 
Python :: get time and dates string 
Python :: Python operator to use for set union 
Python :: pd df set index 
Python :: python sleep command 
Python :: Encrypting a message in Python 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =