there. I'm trying to remove quotations marks the following output
[['40' '40']
['10' '10']
['200' '200']
['230' '231']
['40' '43 ']
['15' '45 ']
['220' '190']]
I desire the following output:
[[40 40]
[10 10]
[....]]
here are my codes. I've been trying for a while but was unable to figure it out. If anyone can help, it will be highly appreciative.
import numpy as np
import matplotlib.pyplot as plt
def extract_file(file_name):
file = open(file_name,'r')
lines = ([line.strip("\n").split(",") for line in file])
x= np.array(lines)
return x
t= extract_file("backyard.txt")