import logging
import csv


def read_header(filepath):
    """Read header line of CSV file.

    INPUT:
        filepath: Full pathname of CSV file

    OUTPUT:
        i: First row of CSV file
    """
    logging.info("Reading header for {0}".format(filepath))
    with open(filepath, "r") as f:
        reader = csv.reader(f)
        i = next(reader)
        # print(i)
        # i = filter(None, i)
        # print(i)
        return i