csv.check_table

View page source

Check Columns in a CSV File

Prototype

# at_cascade.csv.check_table
def check_table(file_name, table) :
    assert type(file_name) == str
    assert type(table) == list
    if len(table) > 0 :
        assert type( table[0] ) == dict

file_name

is the name of the name of the csv file corresponding to the table.

table

is the table corresponding to the csv file; i.e.,

table  = at_cascade.csv.read(file_name)