From aafd7325995f192e35e3ae9b980d438f33c2fd01 Mon Sep 17 00:00:00 2001 From: "theo.canaud" Date: Thu, 16 Jun 2022 17:08:38 +0200 Subject: [PATCH] Tab numpy finished --- Py-Script/courbe.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Py-Script/courbe.py b/Py-Script/courbe.py index f7bd647..1369d73 100644 --- a/Py-Script/courbe.py +++ b/Py-Script/courbe.py @@ -11,11 +11,16 @@ import csv with open('../RawDataFiles/RawData1.csv', 'r') as f: data = csv.reader(f, quoting = csv.QUOTE_MINIMAL) - for lign in data: - print(lign) - print("\n") + data2 = [data2 for data2 in data] +data_array = np.asarray(data2) +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.ylabel('Tension')