import csv


def read_csv_string(input_):
    """
    Takes a string which is the contents of a CSV file.
    Returns an object (dict) containing the data from the file.
    """
    data = csv.DictReader(input_.splitlines())
    # return dict key = column name, value = list(column data)
    return [dict(row) for row in data]