I'm working with the python programming language
Suppose I have a file named "data.txt", written in the format below (the text is already written in the format of np.array):
([[0.0000000, 1.0893900, 0.0000000], [0.0000000, 1.0820800, 0.0000000], [0.0000000, 1.0815400, 0.0000000]])
How could I load the information from this file and save that data in an np.array variable?
What I need is something like loading the information from the txt file in the form below:
variable = np.array([[0.0000000, 1.0893900, 0.0000000], [0.0000000, 1.0820800, 0.0000000], [0.0000000, 1.0815400, 0.0000000]])