Apr-08-2018, 03:28 PM
Hello,
I have got this output from my script:
I found that
I have got this output from my script:
Output:[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]]
I want to cover it to:Output:[[1.0 2.0 3.0]
[4.0 5.0 6.0]
[7.0 8.0 9.0]]
I tried:a = np.asarray(a)but output is:
Output:array([[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0],
[7.0, 8.0, 9.0]])
How resolve this?I found that
a = np.asarrayworked correctly, but there was a problem with command print. When I used:
print ("a", a)it gave me
Output:('a', array([[1.0, 2.0, 3.0],
[4.0, 5.0, 6.0],
[7.0, 8.0, 9.0]])
But when I used:print athe output was:
Output:[[1.0 2.0 3.0]
[4.0 5.0 6.0]
[7.0 8.0 9.0]]