csv.get_header

View page source

Get the Header from a CSV File

Prototype

# at_cascade.csv.get_header
def get_header(file_name) :
    assert type(file_name)  == str
    # ...
    assert type(header) == list
    return header

file_name

is a str with the name of the CSV file. The first line of the file is the header line and the others contain the data. The header value in the j-th column of the first line is the corresponding column name.

Example

csv.table