Tab numpy finished

This commit is contained in:
theo.canaud 2022-06-16 17:08:38 +02:00
parent db8baf2d97
commit aafd732599

View file

@ -11,11 +11,16 @@ import csv
with open('../RawDataFiles/RawData1.csv', 'r') as f: with open('../RawDataFiles/RawData1.csv', 'r') as f:
data = csv.reader(f, quoting = csv.QUOTE_MINIMAL) data = csv.reader(f, quoting = csv.QUOTE_MINIMAL)
for lign in data: data2 = [data2 for data2 in data]
print(lign) data_array = np.asarray(data2)
print("\n") print(data_array[:,5])
# for lign in data:
# print(lign)
# print("\n")
# dataset = np.loadtxt('../RawDataFiles/RawData1.csv', delimiter='\t', dtype='str')
# print(dataset)
plt.xlabel('Temps') plt.xlabel('Temps')
plt.ylabel('Tension') plt.ylabel('Tension')