I have a csv file and I want to sort (lowest from greatest) the first column. The first column's name is "CRIM".
I can read the first column, but I can't sort it, the numbers are floats.
Also, I would like to find the median of the list.
This is what I did so far:
import csv
with open('data.csv', newline='') as csvfile:
data = csv.DictReader(csvfile)
for line in data:
print(line['CRIM'])