def integers_from_csv(file):

    """ Return a list of integers from columns of a .csv fle.

    Parameters
    ----------
    file : str
        Path of .csv file.

    Returns
    -------
    list
        List of integers.

    """

    with open(file, 'r') as f:
        data = f.readlines()

    return [int(i.rstrip('\n')) for i in data]