#!/bin/python3
import csv
import statistics
def read_cvs():
with open('hw_25000.csv', 'r') as csv_rf:
cvs_reader = csv.DictReader(csv_rf)
for line in cvs_reader:
print(line[' "Height(Inches)"'])
read_cvs()
I have this code that reads my file and prints out my height values but I am not sure how to print out the most frequent height values with statistics.mode().
The CSV file is available in https://people.sc.fsu.edu/~jburkardt/data/csv/csv.html