I am trying to read a .txt
file. However, the output is in strings and I don't get the actual array. I present the current and expected outputs below.
import numpy as np
with open('Test.txt') as f:
A = f.readlines()
print(A)
The current output is
['[array([[1.7],\n', ' [2.8],\n', ' [3.9],\n', ' [5.2]])]']
The expected output is
[array([[1.7],
[2.8],
[3.9],
[5.2]])]