Can someone help me create a 2D empty array of fixed dimension? I am using python 2.7 and numpy. The following code should work, but gives me weird output. I could also use help adding elements to a specific location in this list/array.
Code:
import numpy as np
cap = np.empty((10,2))
print(cap)
Output:
[[ 5.87518338e-291 2.84727934e-291]
[ 2.88745078e-291 2.84747506e-291]
[ 2.84757292e-291 2.84767078e-291]
[ 2.86057604e-291 2.84443225e-293]
[ 2.77304046e-291 2.84786650e-291]
[ 2.84801329e-291 7.21189910e-292]
[ 2.86106534e-291 2.86118767e-291]
[ 7.05492591e-293 2.84825794e-291]
[ 2.52065398e-293 1.06489794e-292]
[ 2.52073043e-293 9.05496584e-292]]
Process finished with exit code 0