import csv


def read_csv(filename):
    """ Reads a CSV file and returns the data entries """

    data_entries = []

    with open(filename, 'r') as csvfile:
        reader = csv.reader(csvfile)

        # Skip the header
        next(reader)

        for row in reader:
            entry = {
                'city_name': row[0],
                'crime_rate': float(row[4])
            }

            data_entries.append(entry)

    return data_entries