Nov-02-2017, 03:01 PM
hello,
i am an half beginner with python 3.x
i uploaded a csv file ( here there is an example if someone wants to try) that contain coordinates and i converted it from string to float values, until here is simple.
data = list() import csv with open('data.csv', newline='') as csvfile: file = csv.reader(csvfile, delimiter=';', quotechar='"') for row in file: data.append(row[1:3]) del data[0]#delete header for inner in data: for index, string in enumerate(inner): inner[index] = float(string) #print (data)then i would like to delete the rows that contain a value under a certain amount in one of the columns. how could i do it? i am facing a lot of difficulties with multi dimensional array
i tried for loops but i didn't manage to have it working
for row in data: print ("row: ", row) for element in row: print("ele: ", element)