import csv


def load_csv(filepath, cols=None):
    """Load data from a csv."""
    with open(filepath) as f:
        reader = csv.reader(f)
        if cols is None:
            data = [row for row in reader]
        else:
            data = [[row[col] for col in sorted(cols)] for row in reader if len(row) > 0]
    # drop the header
    return data[1:]