import csv


def read_csv_file(filename):
    """Reads a CSV file and return it as a list of rows."""
    data = []
    for row in csv.reader(open(filename),delimiter=','):
# transfer the string type to the float type
        row=list((float(x) for x in row))
        data.append(row)
    return data