I want to initialize and fill a numpy array. What is the best way?
numpy
This works as I expect:
>>> import numpy as np >>>
If you don't mind None, you can use:
None
a = np.empty(3, dtype=object)