import csv


def get_from_csv(csv_file, column):
    """
    Get column from csv file.
    Arguments:
        csv_file: name of the csv file
        column: column to extract
    Returns: column as a List of floats
    """
    result = []
    # Source: https://stackoverflow.com/a/16503661
    with open(csv_file) as f:
        reader = csv.DictReader(f)  # read rows into a dictionary format
        # read a row as {column1: value1, column2: value2,...}
        for row in reader:
            result.append(float(row[column]))
    return result